Package jmri.jmrit.logix
Class RampData
- java.lang.Object
-
- jmri.jmrit.logix.RampData
-
public class RampData extends java.lang.Object
This class holds a list of throttle setting to make a smooth acceleration or deceleration. It supplies iterators to cycle through the settings. Used when speed changes are called for by signaled speeds, block speed limits or user controls for speed halts and resumes. Also used to make NXWarrants.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected float
getMaxSpeed()
protected int
getNumSteps()
protected float
getRampLength()
protected int
getRamptime()
protected int
getRampTimeIncrement()
protected boolean
isUpRamp()
protected java.util.ListIterator<java.lang.Float>
speedIterator(boolean up)
-
-
-
Method Detail
-
isUpRamp
protected boolean isUpRamp()
-
getRampLength
protected float getRampLength()
-
getNumSteps
protected int getNumSteps()
-
getRamptime
protected int getRamptime()
-
getMaxSpeed
protected float getMaxSpeed()
-
speedIterator
protected java.util.ListIterator<java.lang.Float> speedIterator(boolean up)
-
getRampTimeIncrement
protected int getRampTimeIncrement()
-
-