|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.TransitSection
public class TransitSection
This class holds information and options for a Section when assigned to a Transit. Corresponds to an allocatable "Section" of track assigned to a Transit.
A TransitSection holds the following information: Section ID Section Direction Sequence number of Section within the Transit Special actions list for train in this Section, if requested (see TransitSectionAction.java) Whether this Section is a primary section or an alternate section
A TransitSection is referenced via a list in its parent Transit, and is stored on disk when its parent Transit is stored.
Provides for delayed initializatio of Section when loading panel files, so that this is not dependent on order of items in the panel file.
| Constructor Summary | |
|---|---|
TransitSection(Section s,
int seq,
int direction)
Main constructor method |
|
TransitSection(Section s,
int seq,
int direction,
boolean alt)
Convenience constructor |
|
TransitSection(String secName,
int seq,
int direction,
boolean alt)
Special constructor to delay Section initialization |
|
| Method Summary | |
|---|---|
void |
addAction(TransitSectionAction act)
|
int |
getDirection()
|
Section |
getSection()
Access methods |
String |
getSectionName()
|
int |
getSequenceNumber()
|
ArrayList<TransitSectionAction> |
getTransitSectionActionList()
Get a copy of this TransitSection's TransitSectionAction list |
boolean |
isAlternate()
|
void |
setAlternate(boolean alt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransitSection(Section s,
int seq,
int direction)
public TransitSection(Section s,
int seq,
int direction,
boolean alt)
public TransitSection(String secName,
int seq,
int direction,
boolean alt)
| Method Detail |
|---|
public Section getSection()
public String getSectionName()
public int getDirection()
public int getSequenceNumber()
public void addAction(TransitSectionAction act)
public boolean isAlternate()
public void setAlternate(boolean alt)
public ArrayList<TransitSectionAction> getTransitSectionActionList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||