public class MultiVehicleTask extends java.lang.Object implements Renderer2DPainter, java.lang.Comparable<MultiVehicleTask>
Modifier and Type | Class and Description |
---|---|
static class |
MultiVehicleTask.TASK_STATE |
static class |
MultiVehicleTask.TASK_TYPE |
Modifier and Type | Field and Description |
---|---|
protected LocationType |
center |
protected double |
depth |
protected java.util.Vector<LocationType> |
edges |
protected double |
length |
protected double |
rotation |
protected MultiVehicleTask.TASK_STATE |
state |
protected long |
timeOfCreation |
protected MultiVehicleTask.TASK_TYPE |
type |
protected double |
width |
Constructor and Description |
---|
MultiVehicleTask() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MultiVehicleTask o) |
boolean |
containsPoint(StateRenderer2D renderer,
java.awt.geom.Point2D click) |
LocationType |
getCenter() |
double |
getDepth() |
double |
getLength() |
double |
getRotation() |
MultiVehicleTask.TASK_STATE |
getState() |
MultiVehicleTask.TASK_TYPE |
getType() |
double |
getWidth() |
void |
paint(java.awt.Graphics2D g,
StateRenderer2D renderer) |
void |
setCenter(LocationType center) |
void |
setDepth(double depth) |
void |
setLength(double length) |
void |
setRotation(double rotation) |
void |
setState(MultiVehicleTask.TASK_STATE state) |
void |
setType(MultiVehicleTask.TASK_TYPE type) |
void |
setWidth(double width) |
protected MultiVehicleTask.TASK_TYPE type
protected MultiVehicleTask.TASK_STATE state
protected LocationType center
protected double width
protected double length
protected double depth
protected double rotation
protected long timeOfCreation
protected java.util.Vector<LocationType> edges
public int compareTo(MultiVehicleTask o)
compareTo
in interface java.lang.Comparable<MultiVehicleTask>
public boolean containsPoint(StateRenderer2D renderer, java.awt.geom.Point2D click)
public void paint(java.awt.Graphics2D g, StateRenderer2D renderer)
paint
in interface Renderer2DPainter
public MultiVehicleTask.TASK_TYPE getType()
public void setType(MultiVehicleTask.TASK_TYPE type)
type
- the type to setpublic MultiVehicleTask.TASK_STATE getState()
public void setState(MultiVehicleTask.TASK_STATE state)
state
- the state to setpublic LocationType getCenter()
public void setCenter(LocationType center)
center
- the center to setpublic double getWidth()
public void setWidth(double width)
width
- the width to setpublic double getLength()
public void setLength(double length)
length
- the length to setpublic double getDepth()
public void setDepth(double depth)
depth
- the depth to setpublic double getRotation()
public void setRotation(double rotation)
rotation
- the rotation to setCopyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.