nl.tudelft.simulation.traffic.controlpoint
Interface ControlPointInterface

All Superinterfaces:
nl.tudelft.simulation.dsol.animation.LocatableInterface
All Known Subinterfaces:
ShowInterface, SpeedLimitInterface, StopSignInterface, VirtualControlPointInterface, VisibleControlPointInterface
All Known Implementing Classes:
AbstractVisibleControlPoint, BlockTrafficLight, Show, SingleTrackBlockTrafficLight, SpeedSign, StationHaltingTrafficLight, SwitchBlockTrafficLight, TrafficLight, VirtualControlPoint

public interface ControlPointInterface
extends nl.tudelft.simulation.dsol.animation.LocatableInterface

The ControlPointInterface defines the interface of controlpoints. By definition a controlpoint is a point on a track where something is happening that is relevant for a vehicle. A controlpoint enables the exchange of information between a vehicle and the infrastructure.


Field Summary
static java.lang.String BACK
          a trigger of the controlpoint with the back of the vehicle
static java.lang.String FRONT
          a trigger of the controlpoint with the front of the vehicle
 
Method Summary
 double getProgression()
          The getProgression() method returns progression where the controlPoint is located
 TrackInterface getTrack()
          This method returns the track on which the controlPoint is located
 void pass(VehiclePhysicalInterface vehicle)
          This method handles actions of the controlPoint when the controlPoint is passed by a vehicle.
 
Methods inherited from interface nl.tudelft.simulation.dsol.animation.LocatableInterface
getBounds, getLocation
 

Field Detail

FRONT

public static final java.lang.String FRONT
a trigger of the controlpoint with the front of the vehicle

See Also:
Constant Field Values

BACK

public static final java.lang.String BACK
a trigger of the controlpoint with the back of the vehicle

See Also:
Constant Field Values
Method Detail

getTrack

public TrackInterface getTrack()
This method returns the track on which the controlPoint is located

Returns:
track

getProgression

public double getProgression()
The getProgression() method returns progression where the controlPoint is located

Returns:
progression

pass

public void pass(VehiclePhysicalInterface vehicle)
This method handles actions of the controlPoint when the controlPoint is passed by a vehicle.

Parameters:
vehicle - that triggers the controlPoint


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