public class DynamicObject extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private double |
lastTimeSeen |
private static double |
LOW_TIME |
private Vector3D |
position |
private Vector3D |
predikcia |
private Vector3D |
relativePosition |
private Vector3D |
relativeSpeed |
private static long |
serialVersionUID |
private Vector3D |
speed |
Constructor and Description |
---|
DynamicObject() |
Modifier and Type | Method and Description |
---|---|
DynamicObject |
clone() |
double |
getLastTimeSeen()
Returns last time when dynamic object was seen.
|
Vector3D |
getPosition()
Returns absolute position of dynamic object.
|
Vector3D |
getPrediction()
Gets prediction of dynamic object's future position.
|
Vector3D |
getRelativePosition()
Returns relative position of dynamic object(relative to current agent model).
|
Vector3D |
getRelativeSpeed()
Return dynamic object's relative speed.
|
Vector3D |
getSpeed()
Returns dynamic object's absolute speed.
|
boolean |
notSeenLong()
Returns true if simulation time subtracted by last time seen value is
greater than LOW_TIME constant, otherwise false.
|
double |
notSeenLongTime()
Returns simulation time subtracted by last time seen value.
|
void |
setPosition(Vector3D absolutePosition,
double timeSeen)
Sets absolute position of dynamic object according to specified
absolute position and time seen.
|
void |
setPrediction(Vector3D predikcia) |
void |
setRelativePosition(Vector3D relativePos,
double timeSeen)
Sets relative position of dynamic object according to specified
relative position and time seen.
|
String |
toString() |
private static final long serialVersionUID
private static double LOW_TIME
private Vector3D position
private Vector3D relativePosition
private Vector3D speed
private Vector3D relativeSpeed
private double lastTimeSeen
private Vector3D predikcia
public DynamicObject clone()
public void setRelativePosition(Vector3D relativePos, double timeSeen)
relativePos
- timeSeen
- public void setPosition(Vector3D absolutePosition, double timeSeen)
absolutePosition
- timeSeen
- public Vector3D getPosition()
public Vector3D getRelativePosition()
public boolean notSeenLong()
public double notSeenLongTime()
public Vector3D getPrediction()
public void setPrediction(Vector3D predikcia)
public double getLastTimeSeen()
public Vector3D getSpeed()
public Vector3D getRelativeSpeed()