Package jmri.jmrit.roster
Class RosterSpeedProfile.SpeedStep
- java.lang.Object
-
- jmri.jmrit.roster.RosterSpeedProfile.SpeedStep
-
- Enclosing class:
- RosterSpeedProfile
public static class RosterSpeedProfile.SpeedStep extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SpeedStep()
Create a new SpeedStep, Reverse and Forward speeds are 0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
float
getForwardSpeed()
Get the Forward Speed for the Step.float
getReverseSpeed()
Get the Reverse Speed for the Step.int
hashCode()
void
setForwardSpeed(float speed)
Set the Forward speed for the step.void
setReverseSpeed(float speed)
Set the Reverse speed for the step.
-
-
-
Constructor Detail
-
SpeedStep
public SpeedStep()
Create a new SpeedStep, Reverse and Forward speeds are 0.
-
-
Method Detail
-
setForwardSpeed
public void setForwardSpeed(float speed)
Set the Forward speed for the step.- Parameters:
speed
- the forward speed for the Step.
-
setReverseSpeed
public void setReverseSpeed(float speed)
Set the Reverse speed for the step.- Parameters:
speed
- the reverse speed for the Step.
-
getForwardSpeed
public float getForwardSpeed()
Get the Forward Speed for the Step.- Returns:
- the forward speed.
-
getReverseSpeed
public float getReverseSpeed()
Get the Reverse Speed for the Step.- Returns:
- the reverse speed.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-