nl.tudelft.simulation.traffic.track
Class StraightTrack

java.lang.Object
  extended bynl.tudelft.simulation.traffic.track.Track
      extended bynl.tudelft.simulation.traffic.track.StraightTrack
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.LocatableInterface, TrackInterface

public class StraightTrack
extends Track

A straight track from one link to another link.
(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 30, 2004
Author:
Alexander Verbraeck
Original authors: J.H. Kwakkel and H.W.G. Phaff

Field Summary
 
Fields inherited from class nl.tudelft.simulation.traffic.track.Track
endLink, name, startLink, TRACK_ROUTE_ACTIVE, TRACK_ROUTE_ALL, TRACK_ROUTE_LINE, vehicles
 
Constructor Summary
StraightTrack(java.lang.String name, TrackLinkInterface startLink, TrackLinkInterface endLink)
           
 
Method Summary
 javax.media.j3d.Bounds getBounds()
           
 double getLength()
           
 nl.tudelft.simulation.language.d3.DirectedPoint getLocationOfProgression(double progression)
          The getLocationOfProgression method is only used for animation.
 
Methods inherited from class nl.tudelft.simulation.traffic.track.Track
addControlPoint, addVehicle, calculateDistanceFrontBack, calculateDistanceFrontBack, calculateTrackProgressionListActive, calculateTrackProgressionListAll, calculateTrackProgressionListLine, getControlPoints, getCpsOnInterval, getdx, getdy, getEndLink, getLocation, getStartLink, getVehiclesOnTrack, removeControlPoint, removeVehicle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StraightTrack

public StraightTrack(java.lang.String name,
                     TrackLinkInterface startLink,
                     TrackLinkInterface endLink)
Parameters:
name -
startLink -
endLink -
Method Detail

getLocationOfProgression

public nl.tudelft.simulation.language.d3.DirectedPoint getLocationOfProgression(double progression)
Description copied from interface: TrackInterface
The getLocationOfProgression method is only used for animation. It translates a progression on this track to a 3d-coordinate. It also calculates the orientation of the returned Location.

Parameters:
progression -
Returns:
location
See Also:
TrackInterface.getLocationOfProgression(double)

getBounds

public javax.media.j3d.Bounds getBounds()
See Also:
LocatableInterface.getBounds()

getLength

public double getLength()
Returns:
length of the track
See Also:
TrackInterface.getLength()


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