nl.tudelft.simulation.traffic.controlpoint.real
Class AbstractVisibleControlPoint

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended bynl.tudelft.simulation.traffic.controlpoint.real.AbstractVisibleControlPoint
All Implemented Interfaces:
ControlPointInterface, nl.tudelft.simulation.event.EventProducerInterface, nl.tudelft.simulation.dsol.animation.LocatableInterface, java.io.Serializable, VisibleControlPointInterface
Direct Known Subclasses:
BlockTrafficLight, SingleTrackBlockTrafficLight, SpeedSign, StationHaltingTrafficLight, SwitchBlockTrafficLight, TrafficLight

public abstract class AbstractVisibleControlPoint
extends nl.tudelft.simulation.event.EventProducer
implements VisibleControlPointInterface

This abstract class describes the basics of a visibleControlPoint. It takes care of the construction of showControlPoints.

See Also:
Serialized Form

Field Summary
protected  double progression
          the progression
protected  TrackInterface track
          the track
 
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
AbstractVisibleControlPoint(TrackInterface track, double progression, double visibleDistance, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
          This constructor creates a new instance of the AbstractVisibleControlPoint.
 
Method Summary
 javax.media.j3d.Bounds getBounds()
           
 nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
           
 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
 double getVisibleDistance()
          The visibleDistance parameter defines the distance from which the ControlPoint becomes visible.
 
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.traffic.controlpoint.ControlPointInterface
pass
 

Field Detail

track

protected TrackInterface track
the track


progression

protected double progression
the progression

Constructor Detail

AbstractVisibleControlPoint

public AbstractVisibleControlPoint(TrackInterface track,
                                   double progression,
                                   double visibleDistance,
                                   nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
This constructor creates a new instance of the AbstractVisibleControlPoint. It defines the track on which the controlPoint is situated and the associated progression, as well the distance from which the ControlPoint becomes visible.

Parameters:
track -
progression -
visibleDistance -
simulator -
Method Detail

getProgression

public double getProgression()
Description copied from interface: ControlPointInterface
The getProgression() method returns progression where the controlPoint is located

Specified by:
getProgression in interface ControlPointInterface
Returns:
progression
See Also:
ControlPointInterface.getProgression()

getTrack

public TrackInterface getTrack()
Description copied from interface: ControlPointInterface
This method returns the track on which the controlPoint is located

Specified by:
getTrack in interface ControlPointInterface
Returns:
track
See Also:
ControlPointInterface.getTrack()

getVisibleDistance

public double getVisibleDistance()
Description copied from interface: VisibleControlPointInterface
The visibleDistance parameter defines the distance from which the ControlPoint becomes visible. This distance is defined along the infrastructure, in the opposite direction for which the visible defines a rule.

Specified by:
getVisibleDistance in interface VisibleControlPointInterface
Returns:
the visible distance
See Also:
VisibleControlPointInterface.getVisibleDistance()

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()

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()


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