nl.tudelft.simulation.traffic.station
Class Station

java.lang.Object
  extended bynl.tudelft.simulation.traffic.station.Station
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.LocatableInterface

public class Station
extends java.lang.Object
implements nl.tudelft.simulation.dsol.animation.LocatableInterface


This class is the implementation of a station. A station is considered as just one side of the track. Therefore, it might be that two stations have the same name, but they will have different code/codecompany (c) copyright * 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
Aug 20, 2004
Author:
Elisangela Kanacilo

Field Summary
static java.lang.String PLATFORM_LEFT
          Side of the station
static java.lang.String PLATFORM_RIGHT
          Side of the station
 java.lang.String platformSide
          side where the station will be placed
 
Constructor Summary
Station(java.lang.String name, java.lang.String stationCode, java.lang.String stationCompanyCode, TrackInterface startTrack, double stationProgression, double requestDistance, double stationLength, double stoppingPlaceLength, double haltingTime, java.lang.String platformSide, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
           
 
Method Summary
 StoppingPlace getAccessibleStoppingPlace(java.util.List stoppingPlacesList)
          retrieve the accessible stopping place at the stationTrack
 javax.media.j3d.Bounds getBounds()
           
 double getHaltingTime()
           
 nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPlatformSide()
           
 double getProgression()
           
 TrackInterface getStartTrack()
           
 java.lang.String getStationCode()
           
 java.lang.String getStationCompanyCode()
           
 double getStationLength()
           
 java.util.List getStoppingPlacesList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLATFORM_LEFT

public static final java.lang.String PLATFORM_LEFT
Side of the station

See Also:
Constant Field Values

PLATFORM_RIGHT

public static final java.lang.String PLATFORM_RIGHT
Side of the station

See Also:
Constant Field Values

platformSide

public java.lang.String platformSide
side where the station will be placed

Constructor Detail

Station

public Station(java.lang.String name,
               java.lang.String stationCode,
               java.lang.String stationCompanyCode,
               TrackInterface startTrack,
               double stationProgression,
               double requestDistance,
               double stationLength,
               double stoppingPlaceLength,
               double haltingTime,
               java.lang.String platformSide,
               nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
Parameters:
name - of the station
startTrack - the first track of the station (first position where the vehicles will stop)
stationCode - string or number that identifies the stationTrack
stationCompanyCode - number that identifies the stationTrack
platformSide - side where the station will be placed
stationProgression - position related to the startTrack where the station starts
requestDistance -
stationLength - stationLength of the stationTrack
stoppingPlaceLength - stationLength of each stoppingPlace
haltingTime -
simulator -
Method Detail

getAccessibleStoppingPlace

public StoppingPlace getAccessibleStoppingPlace(java.util.List stoppingPlacesList)
retrieve the accessible stopping place at the stationTrack

Parameters:
stoppingPlacesList -
Returns:
accessible stopping place or null if they are all occupied

getName

public java.lang.String getName()
Returns:
Returns the station.

getStationLength

public double getStationLength()
Returns:
Returns the stationLength.

getProgression

public double getProgression()
Returns:
Returns the progression.

getStartTrack

public TrackInterface getStartTrack()
Returns:
Returns the startTrack.

getStoppingPlacesList

public java.util.List getStoppingPlacesList()
Returns:
Returns the stoppingPlacesList.

getStationCode

public java.lang.String getStationCode()
Returns:
Returns the stationCode.

getStationCompanyCode

public java.lang.String getStationCompanyCode()
Returns:
Returns the stationCompanyCode.

getPlatformSide

public java.lang.String getPlatformSide()
Returns:
Returns the platformSide.

getHaltingTime

public double getHaltingTime()
Returns:
Returns the haltingTime.

getLocation

public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
                                                            throws java.rmi.RemoteException
Specified by:
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
Throws:
java.rmi.RemoteException
See Also:
LocatableInterface.getLocation()

getBounds

public javax.media.j3d.Bounds getBounds()
                                 throws java.rmi.RemoteException
Specified by:
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
Throws:
java.rmi.RemoteException
See Also:
LocatableInterface.getBounds()


Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.