jmri.jmrit.dispatcher
Class AllocationRequest

java.lang.Object
  extended by jmri.jmrit.dispatcher.AllocationRequest

public class AllocationRequest
extends Object

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.

Author:
Dave Duchamp Copyright (C) 2008-2010

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

AllocationRequest

public AllocationRequest(Section s,
                         int num,
                         int dir,
                         ActiveTrain at)
Main constructor method

Method Detail

getSection

public Section getSection()
Access methods


getSectionName

public String getSectionName()

getActiveTrain

protected ActiveTrain getActiveTrain()

getActiveTrainName

protected String getActiveTrainName()

getSectionSeqNumber

protected int getSectionSeqNumber()

getSectionDirection

protected int getSectionDirection()

getSectionDirectionName

protected String getSectionDirectionName()

getWaitingForTrain

protected boolean getWaitingForTrain()

setWaitingForTrain

protected void setWaitingForTrain(boolean set)

addMeetingTrain

protected void addMeetingTrain(ActiveTrain at)

removeMeetingTrain

protected void removeMeetingTrain(ActiveTrain at)

getMeetingTrainList

protected ArrayList<ActiveTrain> getMeetingTrainList()

dispose

public void dispose()


Copyright © 1997 - 2011 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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads