public class SimpleTrack extends Track
Constructor and Description |
---|
SimpleTrack(Model owner,
java.lang.String trackName,
Length[] startPosition,
Length[] destination,
java.util.ArrayList<double[]> wayPoints,
boolean showInTrace)
Constructs a SimpleTreck object with the start-, the destination
position and the way points.
|
SimpleTrack(Model owner,
java.lang.String trackName,
java.lang.String startLocationName,
java.lang.String destinationLocationName,
java.lang.String exitPointName,
java.lang.String entryPointName,
Length[] startPosition,
Length[] destiny,
java.util.ArrayList<double[]> wayPoints,
boolean showInTrace)
Constructs a SimpleTrack with the start- and the destination positions.
|
Modifier and Type | Method and Description |
---|---|
Vector3d |
getDirectionAt(double length)
Gets the current moving direction based on the specified length from the start position on the track.
|
double |
getLength()
Gives the total length of the Track.
|
Length[] |
getPositionAt(double length)
Gets the coordinates (in ExtendedLength) of the current position based on
the specified length from the start position on the track.
|
double[] |
getPositionAtValue(double length)
Gets the coordinates (in double) of the current position based on the
specified length from the start position on the track.
|
java.util.ArrayList<double[]> |
getWayPoints()
Gets the way points of this track.
|
getDestination, getDestinationValue, getDestinyLocationName, getEnrtyPointName, getExitPointName, getStarLengthUnits, getStartLocationName, getStartPositionValue, setDestinyPosition, setStartPosition
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public SimpleTrack(Model owner, java.lang.String trackName, Length[] startPosition, Length[] destination, java.util.ArrayList<double[]> wayPoints, boolean showInTrace)
owner
- The model this entity is associated to.trackName
- The name of this Track.startPosition
- The start position of the Track. It must be a
ExtendedLength[] with a length of 3.destination
- The end position of the Track. It must be a
ExtendedLength[] with a length of 3.wayPoints
- The way points (double[] with length of 3) which
describes the path between the start and the destination.showInTrace
- Flag for showing entity in trace-files. Set it
to true if entity should show up in trace. Set to false in entity
should not be shown in trace.public SimpleTrack(Model owner, java.lang.String trackName, java.lang.String startLocationName, java.lang.String destinationLocationName, java.lang.String exitPointName, java.lang.String entryPointName, Length[] startPosition, Length[] destiny, java.util.ArrayList<double[]> wayPoints, boolean showInTrace)
owner
- The model this entity is associated to.trackName
- The name of this Track.startLocationName
- The name of the start location.destinationLocationName
- The name of the destiny location.exitPointName
- The name of the exit point.entryPointName
- The name of the entry point.startPosition
- The start position of the Track. It must be a
ExtendedLength[] with a length of 3.destination
- The end position of the Track. It must be a
ExtendedLength[] with a length of 3.wayPoints
- The way points (double[] with length of 3) which
describes the path between the start and the destination.showInTrace
- Flag for showing entity in trace-files. Set it
to true if entity should show up in trace. Set to false in entity
should not be shown in trace.public Vector3d getDirectionAt(double length)
Track
getDirectionAt
in class Track
length
- The length from the start position to the current position.public double getLength()
Track
public Length[] getPositionAt(double length)
Track
getPositionAt
in class Track
length
- The length from the start position to the position
which we want to know.public double[] getPositionAtValue(double length)
Track
length
- The length from the start position to the position
which we want to know.public java.util.ArrayList<double[]> getWayPoints()