public class Trajectory extends Object
Modifier and Type | Field and Description |
---|---|
(package private) double |
angleDeviation |
(package private) LinkedList<Annotation> |
moveList |
Constructor and Description |
---|
Trajectory(double angleDeviation)
Constructs object of this class with given deviation.
|
Modifier and Type | Method and Description |
---|---|
void |
addList(LinkedList<Annotation> a)
Joins given trajectory at the end of this trajectory.
|
void |
addMove(Annotation a)
Adds move at the of the trajectory.
|
double |
getDeviation()
Returns angle deviation of this trajectory.
|
double |
getTime()
Calculates duration of the whole trajectory.
|
Annotation |
peek()
Returns the annotation of the first move in the trajectory and leaves it in the queue.
|
Annotation |
poll()
Returns the annotation of the first move in the trajectory and removes it.
|
void |
print()
Prints the whole trajectory on standard output.
|
LinkedList<Annotation> moveList
double angleDeviation
public Trajectory(double angleDeviation)
angleDeviation
- public void addMove(Annotation a)
move
- public void addList(LinkedList<Annotation> a)
trajectory
- public void print()
public double getTime()
public Annotation poll()
public Annotation peek()
public double getDeviation()