Package org.yamcs.studio.data.sim
Class Ramp
Function to simulate a signal that increases constantly within a range (saw-tooth shape). The warning limits are set
at 80% of the range and the alarm at 90% the range. All values are going to have no alarm status, with the timestamp
set at the moment the sample was generated.
-
Field Summary
Fields inherited from class org.yamcs.studio.data.sim.SimFunction
lastTime
-
Constructor Summary
ConstructorDescriptionRamp()
Creates a ramp shaped signal between -5 and +5, incrementing 1 every second.Creates a ramp shaped signal between min and max, incrementing 1 every interval seconds.Creates a ramp shaped signal between min and max, updating a step amount every interval seconds. -
Method Summary
Methods inherited from class org.yamcs.studio.data.sim.SimFunction
createValues, getTimeBetweenSamples
-
Constructor Details
-
Ramp
Creates a ramp shaped signal between min and max, updating a step amount every interval seconds.- Parameters:
min
- minimum valuemax
- maximum valuestep
- increment for each sampleinterval
- interval between samples in seconds
-
Ramp
Creates a ramp shaped signal between min and max, incrementing 1 every interval seconds.- Parameters:
min
- minimum valuemax
- maximum valueinterval
- interval between samples in seconds
-
Ramp
public Ramp()Creates a ramp shaped signal between -5 and +5, incrementing 1 every second.
-