Package jmri.jmrit.display.layoutEditor
Class LayoutTraverser.SlotTrack
java.lang.Object
jmri.jmrit.display.layoutEditor.LayoutTraverser.SlotTrack
- Enclosing class:
- LayoutTraverser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddispose()Dispose of this slot track.Get the approach signal mast for this slot.get the track segment connected to this slotintGet the connection index for this slot.doubleGet the offset for this slot.Get the turnout for this slot track.Get the turnout name for the slot track.intGet the state for the turnout for this slot track.booleanIs this slot track disabled?booleanIs slot track disabled if occupied?booleanIs this slot occupied?voidsetApproachMast(String name) Set the approach signal mast for this slot by name.voidSet the track segment connected to this slot.voidsetDisabled(boolean boo) Set slot track disabled.voidsetDisabledWhenOccupied(boolean boo) Set slot track disabled if occupied.voidsetOffset(double o) Set the offset for this slot.voidSet the position for this slot track.voidsetTurnout(String turnoutName, int state) Set the turnout and state for this slot track.
-
Field Details
-
connectName
-
approachMastName
-
-
Constructor Details
-
SlotTrack
constructor for SlotTracks- Parameters:
offset- its offsetindex- its index
-
-
Method Details
-
setDisabled
Set slot track disabled.- Parameters:
boo- set true to disable
-
isDisabled
Is this slot track disabled?- Returns:
- true if so
-
setDisabledWhenOccupied
Set slot track disabled if occupied.- Parameters:
boo- set true to disable if occupied
-
isDisabledWhenOccupied
Is slot track disabled if occupied?- Returns:
- true if so
-
getConnect
get the track segment connected to this slot- Returns:
- the track segment connected to this slot
-
setConnect
Set the track segment connected to this slot.- Parameters:
ts- the track segment to connect to this slot
-
getOffset
Get the offset for this slot.- Returns:
- the offset for this slot
-
setOffset
Set the offset for this slot.- Parameters:
o- the offset for this slot
-
getConnectionIndex
Get the connection index for this slot.- Returns:
- the connection index for this slot
-
getApproachMast
Get the approach signal mast for this slot.- Returns:
- The signal mast, or null.
-
getApproachMastName
-
setApproachMast
Set the approach signal mast for this slot by name.- Parameters:
name- The name of the signal mast.
-
isOccupied
Is this slot occupied?- Returns:
- true if occupied
-
setTurnout
Set the turnout and state for this slot track.- Parameters:
turnoutName- the turnout namestate- its state
-
setPosition
Set the position for this slot track. -
getTurnout
Get the turnout for this slot track.- Returns:
- the turnout or null
-
getTurnoutName
Get the turnout name for the slot track.- Returns:
- the turnout name
-
getTurnoutState
Get the state for the turnout for this slot track.- Returns:
- the state
-
dispose
void dispose()Dispose of this slot track.
-