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