Package jmri
Class EntryPoint
java.lang.Object
jmri.EntryPoint
Represent an EntryPoint to a Section of track.
Specifies a Block within the Section, and a Path of that Block.
An EntryPoint can be "forward" or "reverse" type, depending on if a train entering the Section at this entry point will be travelling in the forward direction or the reverse direction.
An EntryPoint is referenced via lists in its parent Section, and is stored on disk when its parent section is stored.
This module delays initialization of Blocks until first reference after an Entry Point is loaded from a configuration file.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntryPoint(String bName, String fbName, String fbDir) EntryPoint(Block b, Block pb, String fbDir) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Get the block.intbooleanisFixed()booleanbooleanbooleanvoidsetDirection(int dir) voidsetFixed(boolean f) voidvoidvoid
-
Field Details
-
UNKNOWN
Constants representing the Direction of the Entry Point.- See Also:
-
FORWARD
- See Also:
-
REVERSE
- See Also:
-
-
Constructor Details
-
EntryPoint
-
EntryPoint
-
-
Method Details
-
getBlock
Get the block.- Returns:
- the block, initialized if needed
-
getFromBlockName
-
getFromBlock
-
setTypeForward
-
setTypeReverse
-
setTypeUnknown
-
isForwardType
-
isReverseType
-
isUnknownType
-
getDirection
-
setDirection
-
setFixed
-
isFixed
-
getFromBlockDirection
-