|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.dispatcher.AllocationRequest
public class AllocationRequest
This class holds information and options for an AllocationRequestt.
An AllocationRequest holds the following information: Section to be allocated Active Train requesting the allocation
A AllocationRequests is referenced via a list in DispatcherFrame, which serves as a manager for AllocationRequest objects.
AllocationRequests are transient, and are not saved to disk.
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 | |
|---|---|
AllocationRequest(Section s,
int num,
int dir,
ActiveTrain at)
Main constructor method |
|
| Method Summary | |
|---|---|
protected void |
addMeetingTrain(ActiveTrain at)
|
void |
dispose()
|
protected ActiveTrain |
getActiveTrain()
|
protected String |
getActiveTrainName()
|
protected ArrayList<ActiveTrain> |
getMeetingTrainList()
|
Section |
getSection()
Access methods |
protected int |
getSectionDirection()
|
protected String |
getSectionDirectionName()
|
String |
getSectionName()
|
protected int |
getSectionSeqNumber()
|
protected boolean |
getWaitingForTrain()
|
protected void |
removeMeetingTrain(ActiveTrain at)
|
protected void |
setWaitingForTrain(boolean set)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocationRequest(Section s,
int num,
int dir,
ActiveTrain at)
| Method Detail |
|---|
public Section getSection()
public String getSectionName()
protected ActiveTrain getActiveTrain()
protected String getActiveTrainName()
protected int getSectionSeqNumber()
protected int getSectionDirection()
protected String getSectionDirectionName()
protected boolean getWaitingForTrain()
protected void setWaitingForTrain(boolean set)
protected void addMeetingTrain(ActiveTrain at)
protected void removeMeetingTrain(ActiveTrain at)
protected ArrayList<ActiveTrain> getMeetingTrainList()
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||