nl.tudelft.simulation.traffic.controlpoint.virtual
Class VirtualControlPoint

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended bynl.tudelft.simulation.traffic.controlpoint.virtual.VirtualControlPoint
All Implemented Interfaces:
ControlPointInterface, nl.tudelft.simulation.event.EventProducerInterface, nl.tudelft.simulation.dsol.animation.LocatableInterface, java.io.Serializable, VirtualControlPointInterface
Direct Known Subclasses:
BlockControlPoint, RemoveControlPoint, Show, SingleTrackControlPoint, StationControlPoint, SwitchBlockControlPoint

public abstract class VirtualControlPoint
extends nl.tudelft.simulation.event.EventProducer
implements VirtualControlPointInterface

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
VirtualControlPoint(TrackInterface track, double progression, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
           
 
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
 
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
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Constructor Detail

VirtualControlPoint

public VirtualControlPoint(TrackInterface track,
                           double progression,
                           nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
Parameters:
track -
progression -
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()

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.