Class Signal

java.lang.Object
net.maswag.falcaun.Signal

public class Signal extends Object
Signal of Simulink
  • Field Details

    • timeStep

      protected double timeStep
    • signalValues

      protected List<List<Double>> signalValues
    • timestamps

      protected List<Double> timestamps
  • Constructor Details

    • Signal

      public Signal(double timeStep)
  • Method Details

    • add

      public boolean add(List<Double> inputValue)
    • addAll

      public void addAll(Collection<? extends List<Double>> inputValues)
    • addAll

      public void addAll(net.automatalib.word.Word<? extends List<Double>> inputValues)
    • duration

      public double duration()
      Returns the duration of the signal
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • size

      public int size()
      Return the length of the signal
    • dimension

      public Integer dimension()
      Return the dimension of the signal
      Returns:
      It returns the dimension of the signal if the input value is already set. Otherwise, it returns null.
    • clear

      public void clear()
      Clear the signal
    • get

      public List<Double> get(int index)
      Return the value of the index-th control point of the signal
      Parameters:
      index - The index
      Returns:
      It returns the value of the index-th control point of the signal.
    • dimensionGet

      public List<Double> dimensionGet(int index)
      Return the signal values of the index-th signal
      Parameters:
      index - The index
      Returns:
      It returns the signal values of the index-th signal.