|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.dispatcher.AllocatedSection
public class AllocatedSection
This class holds information and options for an AllocatedSection, a Section that is currently allocated to an ActiveTrain.
AllocatedSections are referenced via a list in DispatcherFrame, which serves as a manager for AllocatedSection objects. Each ActiveTrain also maintains a list of AllocatedSections currently assigned to it.
AllocatedSections are transient, and are not saved to disk.
AllocatedSections keep track of whether they have been entered and exited.
If the Active Train this Section is assigned to is being run automatically, support is provided for monitoring Section changes and changes for Blocks within the Section.
This file is part of JMRI.
JMRI is open source software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Constructor Summary | |
|---|---|
AllocatedSection(Section s,
ActiveTrain at,
int seq,
Section next,
int nextSeqNo)
Main constructor method |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocatedSection(Section s,
ActiveTrain at,
int seq,
Section next,
int nextSeqNo)
s - cannot be null| Method Detail |
|---|
public Section getSection()
public String getSectionName()
public ActiveTrain getActiveTrain()
public String getActiveTrainName()
public int getSequence()
public Section getNextSection()
public int getNextSectionSequence()
public boolean getEntered()
public boolean getExited()
public int getAllocationNumber()
public void setAllocationNumber(int n)
public Sensor getForwardStoppingSensor()
public Sensor getReverseStoppingSensor()
public void setIndex(int i)
public int getIndex()
public void setExitSignalListener(PropertyChangeListener xSigListener)
public PropertyChangeListener getExitSignalListener()
protected void setStoppingSensors()
protected TransitSection getTransitSection()
public int getDirection()
public int getLength()
public void reset()
public void initializeMonitorBlockOccupancy()
protected Block getExitBlock()
protected Block getEnterBlock(AllocatedSection previousAllocatedSection)
protected void addToActiveBlockList(Block b)
protected void removeFromActiveBlockList(Block b)
protected boolean isInActiveBlockList(Block b)
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||