Package net.maswag.falcaun
Class Signal
java.lang.Object
net.maswag.falcaun.Signal
Signal of Simulink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
addAll
(Collection<? extends List<Double>> inputValues) void
void
clear()
Clear the signalReturn the dimension of the signaldimensionGet
(int index) Return the signal values of the index-th signaldouble
duration()
Returns the duration of the signalget
(int index) Return the value of the index-th control point of the signalint
size()
Return the length of the signaltoString()
-
Field Details
-
timeStep
protected double timeStep -
signalValues
-
timestamps
-
-
Constructor Details
-
Signal
public Signal(double timeStep)
-
-
Method Details
-
add
-
addAll
-
addAll
-
duration
public double duration()Returns the duration of the signal -
toString
-
size
public int size()Return the length of the signal -
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
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
Return the signal values of the index-th signal- Parameters:
index
- The index- Returns:
- It returns the signal values of the index-th signal.
-