Package jmri.jmrix.loconet.alm
Class LnSimpleRouteEntry
- java.lang.Object
-
- jmri.jmrix.loconet.alm.LnSimpleRouteEntry
-
public class LnSimpleRouteEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description SimpleTurnoutStateEntry
guiEntry
static int
UNUSEDTURNOUTNUMBER
-
Constructor Summary
Constructors Constructor Description LnSimpleRouteEntry()
C'tor.LnSimpleRouteEntry(int addr, boolean closed, boolean unused)
C'tor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumber()
Getter.RouteSwitchPositionEnum
getPosition()
Getter.int
setNumber(int turnoutNumber)
Setter.void
setPosition(RouteSwitchPositionEnum position)
Setter.
-
-
-
Field Detail
-
UNUSEDTURNOUTNUMBER
public static final int UNUSEDTURNOUTNUMBER
- See Also:
- Constant Field Values
-
guiEntry
public SimpleTurnoutStateEntry guiEntry
-
-
Constructor Detail
-
LnSimpleRouteEntry
public LnSimpleRouteEntry()
C'tor.
-
LnSimpleRouteEntry
public LnSimpleRouteEntry(int addr, boolean closed, boolean unused)
C'tor.- Parameters:
addr
- addressclosed
- true if closed, else thrownunused
- determines whether the entry is unused or used
-
-
Method Detail
-
getNumber
public int getNumber()
Getter.- Returns:
- turnout number
-
setNumber
public int setNumber(int turnoutNumber)
Setter.- Parameters:
turnoutNumber
- Turnout number- Returns:
- the turnout number which was set
-
getPosition
public RouteSwitchPositionEnum getPosition()
Getter.- Returns:
- RouteSwitchPositionEnum
-
setPosition
public void setPosition(RouteSwitchPositionEnum position)
Setter.- Parameters:
position
- Turnout position
-
-