Class AllocationRequest
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocationRequest(Section s, int num, int dir, ActiveTrain at) Create an AllocationRequest. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddispose()protected ActiveTrainprotected Stringprotected ArrayList<ActiveTrain>protected intprotected Stringprotected intprotected booleanprotected voidvoidprotected voidsetWaitingForTrain(boolean set) protected void
-
Field Details
-
mWaitingOnBlock
-
-
Constructor Details
-
AllocationRequest
Create an AllocationRequest.- Parameters:
s- the requested sectionnum- the sequence number for the requested sectiondir- the direction the train is traveling on the sectionat- the train for which the section is requested
-
-
Method Details
-
getSection
-
getSectionName
-
getActiveTrain
-
getActiveTrainName
-
getSectionSeqNumber
-
getSectionDirection
-
getSectionDirectionName
-
getWaitingForTrain
-
setWaitingForTrain
-
addMeetingTrain
-
removeMeetingTrain
-
getMeetingTrainList
-
dispose
-
setWaitingForSignalMast
-
setWaitingOnBlock
-