nl.tudelft.simulation.traffic.station
Class StoppingPlace

java.lang.Object
  extended bynl.tudelft.simulation.traffic.station.StoppingPlace

public class StoppingPlace
extends java.lang.Object


This class is the implementation of a stopping place. Each station is divided into stopping places and the number varies accordingly to its length (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

Constructor Summary
StoppingPlace(Station station, TrackInterface track, double progression, double requestDistance, double length, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
           
 
Method Summary
 boolean claimStoppingPlace()
           
 double getLength()
           
 double getProgression()
           
 TrackInterface getStartTrack()
           
 Station getStation()
           
 boolean isClaimed()
          check if the place was already claimed
 void pass(VehiclePhysicalInterface vehicle)
          (non-Javadoc)
 void releaseStoppingPlace()
          make the stopping place available
 void setClaimed(boolean claimed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoppingPlace

public StoppingPlace(Station station,
                     TrackInterface track,
                     double progression,
                     double requestDistance,
                     double length,
                     nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator)
Parameters:
station - station to where it belongs
track - starting track of the stopping place
progression - position related to the track where the stoppingPlace starts
requestDistance -
length - length of the stopping place
simulator -
Method Detail

claimStoppingPlace

public boolean claimStoppingPlace()
Returns:

releaseStoppingPlace

public void releaseStoppingPlace()
make the stopping place available


pass

public void pass(VehiclePhysicalInterface vehicle)
(non-Javadoc)

Parameters:
vehicle -
See Also:
ControlPointInterface.pass(nl.tudelft.simulation.traffic.vehicle.VehiclePhysicalInterface)

getStation

public Station getStation()
Returns:
Returns the stationTrack.

isClaimed

public boolean isClaimed()
check if the place was already claimed

Returns:

getLength

public double getLength()
Returns:
Returns the length.

getProgression

public double getProgression()
Returns:
Returns the progression.

setClaimed

public void setClaimed(boolean claimed)
Parameters:
claimed - The claimed to set.

getStartTrack

public TrackInterface getStartTrack()
Returns:
Returns the startTrack.


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