Package jmri.jmrit.roster
Class RosterSpeedProfile.SpeedStep
java.lang.Object
jmri.jmrit.roster.RosterSpeedProfile.SpeedStep
- Enclosing class:
- RosterSpeedProfile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatGet the Forward Speed for the Step.floatGet the Reverse Speed for the Step.inthashCode()voidsetForwardSpeed(float speed) Set the Forward speed for the step.voidsetReverseSpeed(float speed) Set the Reverse speed for the step.
-
Constructor Details
-
SpeedStep
public SpeedStep()Create a new SpeedStep, Reverse and Forward speeds are 0.
-
-
Method Details
-
setForwardSpeed
Set the Forward speed for the step.- Parameters:
speed- the forward speed for the Step.
-
setReverseSpeed
Set the Reverse speed for the step.- Parameters:
speed- the reverse speed for the Step.
-
getForwardSpeed
Get the Forward Speed for the Step.- Returns:
- the forward speed.
-
getReverseSpeed
Get the Reverse Speed for the Step.- Returns:
- the reverse speed.
-
equals
-
hashCode
-