public abstract class Track extends ModelComponent
Constructor and Description |
---|
Track(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[] destination,
boolean showInTrace)
Constructs a Track and initialize the basic attributes.
|
Modifier and Type | Method and Description |
---|---|
Length[] |
getDestination()
Gets the destiny position in ExtendedLength[].
|
double[] |
getDestinationValue()
Gives the end position of the Track.
|
java.lang.String |
getDestinyLocationName()
Gets the name of the destiny location.
|
abstract Vector3d |
getDirectionAt(double length)
Gets the current moving direction based on the specified length from the start position on the track.
|
java.lang.String |
getEnrtyPointName()
Gets the name of the entry point at the destiny location.
|
java.lang.String |
getExitPointName()
Gets the name of the exit point at the start location.
|
abstract double |
getLength()
Gives the total length of the Track.
|
abstract 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.
|
Length[] |
getStarLengthUnits()
Gets the start position in ExtendedLength[].
|
java.lang.String |
getStartLocationName()
Gets the name of the start location.
|
double[] |
getStartPositionValue()
Gives the start Position of the Track.
|
void |
setDestinyPosition(Length[] position)
Sets the destiny position of this track.
|
void |
setStartPosition(Length[] position)
Sets the start position of this track.
|
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 Track(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[] destination, 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.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 java.lang.String getDestinyLocationName()
public Length[] getDestination()
public double[] getDestinationValue()
public abstract Vector3d getDirectionAt(double length)
length
- The length from the start position to the current position.public java.lang.String getEnrtyPointName()
public java.lang.String getExitPointName()
public abstract double getLength()
public abstract Length[] getPositionAt(double length)
length
- The length from the start position to the position
which we want to know.public java.lang.String getStartLocationName()
public Length[] getStarLengthUnits()
public double[] getStartPositionValue()
public void setStartPosition(Length[] position)
position
- The position to be set. It must be a ExtendedLength of
length 3.public void setDestinyPosition(Length[] position)
position
- The position to be set. It must be a ExtendedLength of
length 3.