|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.vecmath.Tuple3d
javax.vecmath.Point3d
nl.tudelft.simulation.language.d3.CartesianPoint
nl.tudelft.simulation.language.d3.DirectedPoint
nl.tudelft.simulation.traffic.track.ComplexTrackLink
This is a complex track link, with several possible predecessors and several
possible successors.
(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
| Field Summary |
| Fields inherited from class javax.vecmath.Point3d |
|
| Fields inherited from class javax.vecmath.Tuple3d |
x, y, z |
| Constructor Summary | |
ComplexTrackLink(java.lang.String name,
nl.tudelft.simulation.language.d3.DirectedPoint location)
Construct a new ComplexTrackLink |
|
ComplexTrackLink(java.lang.String name,
double x,
double y,
double z)
Construct a new ComplexTrackLink |
|
ComplexTrackLink(java.lang.String name,
javax.vecmath.Point3d point)
Construct a new ComplexTrackLink |
|
| Method Summary | |
void |
addPredecessor(TrackInterface predecessor)
Adds a predecessor to this link. |
void |
addSuccessor(TrackInterface successor)
Adds a successor to this link. |
TrackInterface |
getActivePredecessor(TrackInterface successor)
|
TrackInterface |
getActiveSuccessor(TrackInterface predecessor)
This method gets the active successor of the given track. |
javax.media.j3d.Bounds |
getBounds()
|
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation()
|
javax.vecmath.Point3d |
getPosition()
|
TrackList |
getPredecessors()
Returns all predecessors for this link. |
TrackList |
getSuccessors()
Returns all successors for this link. |
protected void |
setActivePredecessor(TrackInterface successor,
TrackInterface predecessor)
|
void |
setActiveSuccessor(TrackInterface prevTrack,
TrackInterface nextTrack)
This method sets the active successor of the given track. |
java.lang.String |
toString()
|
| Methods inherited from class nl.tudelft.simulation.language.d3.DirectedPoint |
clone, equals, equals, getRotX, getRotY, getRotZ, hashCode, setRotX, setRotY, setRotZ |
| Methods inherited from class nl.tudelft.simulation.language.d3.CartesianPoint |
to2D, toCartesianPoint, toSphericalPoint |
| Methods inherited from class javax.vecmath.Point3d |
distance, distanceL1, distanceLinf, distanceSquared, project |
| Methods inherited from class javax.vecmath.Tuple3d |
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, get, get, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, sub, sub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ComplexTrackLink(java.lang.String name,
nl.tudelft.simulation.language.d3.DirectedPoint location)
name - location -
public ComplexTrackLink(java.lang.String name,
javax.vecmath.Point3d point)
name - point -
public ComplexTrackLink(java.lang.String name,
double x,
double y,
double z)
name - x - y - z - | Method Detail |
public void addSuccessor(TrackInterface successor)
TrackLinkInterface
addSuccessor in interface TrackLinkInterfacesuccessor - TrackLinkInterface.addSuccessor(TrackInterface)public void addPredecessor(TrackInterface predecessor)
TrackLinkInterface
addPredecessor in interface TrackLinkInterfacepredecessor - TrackLinkInterface.addPredecessor(TrackInterface)
public void setActiveSuccessor(TrackInterface prevTrack,
TrackInterface nextTrack)
TrackLinkInterface
setActiveSuccessor in interface TrackLinkInterfaceprevTrack - nextTrack - TrackLinkInterface.setActiveSuccessor(TrackInterface,
TrackInterface)
protected void setActivePredecessor(TrackInterface successor,
TrackInterface predecessor)
successor - predecessor - public TrackInterface getActiveSuccessor(TrackInterface predecessor)
TrackLinkInterface
getActiveSuccessor in interface TrackLinkInterfacepredecessor -
TrackLinkInterface.getActiveSuccessor(TrackInterface)public TrackInterface getActivePredecessor(TrackInterface successor)
successor -
public TrackList getSuccessors()
TrackLinkInterface
getSuccessors in interface TrackLinkInterfaceTrackLinkInterface.getSuccessors()public TrackList getPredecessors()
TrackLinkInterface
getPredecessors in interface TrackLinkInterfaceTrackLinkInterface.getPredecessors()public javax.vecmath.Point3d getPosition()
getPosition in interface TrackLinkInterfaceTrackLinkInterface.getPosition()public javax.media.j3d.Bounds getBounds()
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceLocatableInterface.getBounds()public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceLocatableInterface.getLocation()public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||