nl.tudelft.simulation.traffic.controlpoint.blocks
Class SingleTrackControlPoint

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended bynl.tudelft.simulation.traffic.controlpoint.virtual.VirtualControlPoint
          extended bynl.tudelft.simulation.traffic.controlpoint.blocks.SingleTrackControlPoint
All Implemented Interfaces:
ControlPointInterface, nl.tudelft.simulation.event.EventProducerInterface, nl.tudelft.simulation.dsol.animation.LocatableInterface, java.io.Serializable, VirtualControlPointInterface

public class SingleTrackControlPoint
extends VirtualControlPoint

This class implements red, yellow and green virtual control points for the BlockTrafficLights
(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:
May 31, 2004
Author:
Alexander Verbraeck
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.traffic.controlpoint.ControlPointInterface
BACK, FRONT
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
SingleTrackControlPoint(TrackInterface track, double progression, SingleTrackBlockTrafficLight callBack, int sensor, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
           
 
Method Summary
 void pass(VehiclePhysicalInterface vehicle)
          This method handles actions of the controlPoint when the controlPoint is passed by a vehicle.
 
Methods inherited from class nl.tudelft.simulation.traffic.controlpoint.virtual.VirtualControlPoint
getBounds, getLocation, getProgression, getTrack
 
Methods inherited from class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Constructor Detail

SingleTrackControlPoint

public SingleTrackControlPoint(TrackInterface track,
                               double progression,
                               SingleTrackBlockTrafficLight callBack,
                               int sensor,
                               nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
Parameters:
track -
progression -
callBack -
sensor -
simulator -
Method Detail

pass

public void pass(VehiclePhysicalInterface vehicle)
Description copied from interface: ControlPointInterface
This method handles actions of the controlPoint when the controlPoint is passed by a vehicle.

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


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