jmri
Class EntryPoint
java.lang.Object
jmri.EntryPoint
public class EntryPoint
- extends Object
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.
- Author:
- Dave Duchamp Copyright (C) 2008
|
Field Summary |
static int |
FORWARD
|
static int |
REVERSE
|
static int |
UNKNOWN
Constants representing the Direction of the Entry Point. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
- Constants representing the Direction of the Entry Point.
- See Also:
- Constant Field Values
FORWARD
public static final int FORWARD
- See Also:
- Constant Field Values
REVERSE
public static final int REVERSE
- See Also:
- Constant Field Values
EntryPoint
public EntryPoint(Block b,
Block pb,
String fbDir)
EntryPoint
public EntryPoint(String bName,
String fbName,
String fbDir)
getBlock
public Block getBlock()
- Access methods
getFromBlockName
public String getFromBlockName()
getFromBlock
public Block getFromBlock()
setTypeForward
public void setTypeForward()
setTypeReverse
public void setTypeReverse()
setTypeUnknown
public void setTypeUnknown()
isForwardType
public boolean isForwardType()
isReverseType
public boolean isReverseType()
isUnknownType
public boolean isUnknownType()
getDirection
public int getDirection()
setDirection
public void setDirection(int dir)
setFixed
public void setFixed(boolean f)
isFixed
public boolean isFixed()
getFromBlockDirection
public String getFromBlockDirection()
Copyright © 1997 - 2009 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: