public class CreateMovementRequest
extends java.lang.Object
Constructor and Description |
---|
CreateMovementRequest() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getDiff()
Returns the euclidean distance from the previous point on the trajectory
|
java.time.Instant |
getTime()
Returns the time when the detected object passed through the point
|
java.util.List<java.lang.Double> |
getVelocity()
Returns the velocity vector of the object in the given point
|
java.lang.Integer |
getX()
Returns the camera screen x coordinate
|
java.lang.Integer |
getY()
Returns the camera screen y coordinate
|
void |
setDiff(java.lang.Double diff)
Sets the euclidean distance from the previous point on the trajectory
|
void |
setTime(java.time.Instant time)
Sets the time when the detected object passed through the point
|
void |
setVelocity(java.util.List<java.lang.Double> velocity)
Sets the velocity vector of the object in the given point
|
void |
setX(java.lang.Integer x)
Sets the camera screen x coordinate
|
void |
setY(java.lang.Integer y)
Sets the camera screen y coordinate
|
public java.time.Instant getTime()
public void setTime(java.time.Instant time)
time
- the time when the detected object passed through the pointpublic java.lang.Integer getX()
public void setX(java.lang.Integer x)
x
- the camera screen x coordinatepublic java.lang.Integer getY()
public void setY(java.lang.Integer y)
y
- the camera screen y coordinatepublic java.lang.Double getDiff()
public void setDiff(java.lang.Double diff)
diff
- the euclidean distance from the previous point on the trajectory (in pixels)public java.util.List<java.lang.Double> getVelocity()
public void setVelocity(java.util.List<java.lang.Double> velocity)
velocity
- the velocity vector of the object in the given point (in pixels per second)
as a list containing 2 elements - the x and y components of the vector