Package jmri.jmrit.logix
Class BlockOrder
java.lang.Object
jmri.jmrit.logix.BlockOrder
A BlockOrder is a row in the route of the warrant.
It contains where the warranted train enters a block, the path it takes and
where it exits the block.
(The route is a list of BlockOrder.)
The Engineer is notified when the train enters the block.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlockOrder(BlockOrder bo) BlockOrder(OBlock block) BlockOrder(OBlock block, String path, String entry, String exit) Create BlockOrder. -
Method Summary
Modifier and TypeMethodDescriptionprotected TrainOrderallocatePaths(Warrant warrant, boolean allocate) getBlock()protected floatprotected Portalprotected PortalintgetIndex()protected OPathgetPath()protected floatprotected StringCheck signals for entrance into next block.protected static Stringprotected NamedBeanGet the signal protecting entry into the block of this BlockOrder.protected StringpathsConnect(OPath path1, Portal exit, OBlock block) protected voidprotected voidsetEntryName(String name) protected voidsetExitName(String name) voidsetIndex(int idx) protected Stringprotected voidsetPathLength(float len) protected voidsetPathName(String path) Set Path.toString()
-
Constructor Details
-
BlockOrder
-
BlockOrder
Create BlockOrder.- Parameters:
block- OBlock of this orderpath- MUST be a path in the blocKentry- MUST be a name of a Portal to the pathexit- MUST be a name of a Portal to the path
-
BlockOrder
-
-
Method Details
-
setIndex
-
getIndex
-
setEntryName
-
getEntryName
-
setExitName
-
getExitName
-
setPathName
Set Path. Note that the Path's 'fromPortal' and 'toPortal' have no bearing on the BlockOrder's entryPortal and exitPortal.- Parameters:
path- Name of the OPath connecting the entry and exit Portals
-
getPathName
-
getPath
-
setPath
-
allocatePaths
-
pathsConnect
@CheckForNull protected String pathsConnect(@Nonnull OPath path1, @CheckForNull Portal exit, @CheckForNull OBlock block) -
getPermissibleSpeedAt
-
setPathLength
-
getPathLength
-
setBlock
-
getBlock
-
getEntryPortal
-
getExitPortal
-
getPermissibleEntranceSpeed
Check signals for entrance into next block.- Returns:
- speed
-
getEntranceSpace
-
getSignal
Get the signal protecting entry into the block of this BlockOrder.- Returns:
- signal
-
toString
-