nl.tudelft.simulation.traffic.track
Class StraightTrack
java.lang.Object
nl.tudelft.simulation.traffic.track.Track
nl.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
|
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 |
StraightTrack
public StraightTrack(java.lang.String name,
TrackLinkInterface startLink,
TrackLinkInterface endLink)
- Parameters:
name - startLink - endLink -
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.