jmri.jmrit.logix
Class BlockOrder

java.lang.Object
  extended by jmri.jmrit.logix.BlockOrder

public class BlockOrder
extends Object

An BlockOrder is a row in the warrant. It contains the directives the Engineer must do when in a block

Author:
Pete Cressman Copyright (C) 2009

Constructor Summary
protected BlockOrder(BlockOrder bo)
           
  BlockOrder(OBlock block)
           
  BlockOrder(OBlock block, String path, String entry, String exit)
          Create BlockOrder.
 
Method Summary
 OBlock getBlock()
           
protected  long getEntranceSpeedChangeWait()
           
 String getEntryName()
           
protected  Portal getEntryPortal()
           
 String getExitName()
           
protected  Portal getExitPortal()
           
protected  OPath getPath()
           
 String getPathName()
           
protected  String getPermissibleEntranceSpeed()
          Check signals for entrance into next block.
protected  NamedBean getSignal()
           
protected  String hash()
           
protected  void setBlock(OBlock block)
           
protected  void setEntryName(String name)
           
protected  void setExitName(String name)
           
protected  String setPath(Warrant warrant)
           
protected  void setPathName(String path)
          Set Path.
 String toString()
           
protected  boolean validateOrder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockOrder

public BlockOrder(OBlock block)

BlockOrder

public BlockOrder(OBlock block,
                  String path,
                  String entry,
                  String exit)
Create BlockOrder.

Parameters:
block -
path - MUST be a path in the blocK
entry - MUST be a name of a Portal to the path
exit - MUST be a name of a Portal to the path

BlockOrder

protected BlockOrder(BlockOrder bo)
Method Detail

setEntryName

protected void setEntryName(String name)

getEntryName

public String getEntryName()

setExitName

protected void setExitName(String name)

getExitName

public String getExitName()

validateOrder

protected boolean validateOrder()

setPathName

protected void setPathName(String path)
Set Path. Note that the Path's 'fromPortal' and 'toPortal' have no bearing on the BlockOrder's entryPortal and exitPortal.


getPathName

public String getPathName()

getPath

protected OPath getPath()

setPath

protected String setPath(Warrant warrant)

setBlock

protected void setBlock(OBlock block)

getBlock

public OBlock getBlock()

getEntryPortal

protected Portal getEntryPortal()

getExitPortal

protected Portal getExitPortal()

getPermissibleEntranceSpeed

protected String getPermissibleEntranceSpeed()
Check signals for entrance into next block.

Returns:
speed

getEntranceSpeedChangeWait

protected long getEntranceSpeedChangeWait()

getSignal

protected NamedBean getSignal()

hash

protected String hash()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads