public class Loiter extends Maneuver implements LocatedManeuver, StatisticsProvider, IMCSerialization
Maneuver.SPEED_UNITS, Maneuver.Z_UNITS
Modifier and Type | Field and Description |
---|---|
static int |
INFINITY_DURATION |
protected static java.util.LinkedHashMap<java.lang.Long,java.lang.String> |
loiterDirectionConstantsMap |
protected static java.util.LinkedHashMap<java.lang.Long,java.lang.String> |
wpLoiterTypeConstantsMap |
circleDiam, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions
Constructor and Description |
---|
Loiter() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
A maneuver must have a way to clone itself.
|
double |
getBearing() |
double |
getCompletionTime(LocationType initialPosition) |
java.lang.String |
getDirection() |
double |
getDistanceTravelled(LocationType initialPosition) |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
double |
getLength() |
LocationType |
getLocation() |
int |
getLoiterDuration() |
java.lang.String |
getLoiterType() |
org.dom4j.Document |
getManeuverAsDocument(java.lang.String rootElementName) |
ManeuverLocation |
getManeuverLocation()
Retrieve the position of the maneuver (position that can be dragged by the user)
|
double |
getMaxDepth() |
double |
getMinDepth() |
double |
getRadius() |
double |
getRadiusTolerance() |
double |
getSpeed() |
double |
getSpeedTolerance() |
java.lang.String |
getSpeedUnits() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
java.lang.String |
getType()
The extending classes should provide a type name that will be shown to the user related to that maneuver.
|
protected double |
getVelocityInMetersPerSeconds() |
void |
loadFromXML(java.lang.String XML) |
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setBearing(double bearing) |
void |
setDirection(java.lang.String direction) |
void |
setLength(double length) |
void |
setLoiterDuration(int loiterDuration) |
void |
setLoiterType(java.lang.String loiterType) |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setRadius(double radius) |
void |
setRadiusTolerance(double radiusTolerance) |
void |
setSpeed(double speed) |
void |
setSpeedTolerance(double speedTolerance) |
void |
setSpeedUnits(java.lang.String speedUnits) |
void |
translate(double offsetNorth,
double offsetEast,
double offsetDown)
Translate the position of this maneuver
|
addTransition, asDocument, asDocument, asElement, asElement, asXML, asXML, clone, cloneActions, compareTo, createFromXML, endManeuver, getCustomSettings, getCustomSettingsTypeHint, getEndActions, getIcon, getId, getManeuverXml, getMaxTime, getMinTime, getMissionType, getProperties, getPropertiesDialogTitle, getPropertiesErrors, getReacheableManeuvers, getSamePositionManeuvers, getStartActions, getTransitionCondition, getXPosition, getYPosition, hasEnded, interpolate, isInitialManeuver, loadFromXMLExtraParameters, loadFromXMLExtraParameters, loadManeuverXml, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setXPosition, setYPosition, toString
public static final int INFINITY_DURATION
protected static final java.util.LinkedHashMap<java.lang.Long,java.lang.String> wpLoiterTypeConstantsMap
protected static final java.util.LinkedHashMap<java.lang.Long,java.lang.String> loiterDirectionConstantsMap
public java.lang.Object clone()
Maneuver
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
getManeuverAsDocument
in class Maneuver
public java.lang.String getType()
Maneuver
public void loadFromXML(java.lang.String XML)
loadFromXML
in class Maneuver
public ManeuverLocation getManeuverLocation()
LocatedManeuver
getManeuverLocation
in interface LocatedManeuver
public ManeuverLocation getStartLocation()
LocatedManeuver
getStartLocation
in interface LocatedManeuver
public ManeuverLocation getEndLocation()
LocatedManeuver
getEndLocation
in interface LocatedManeuver
public void setManeuverLocation(ManeuverLocation location)
LocatedManeuver
setManeuverLocation
in interface LocatedManeuver
location
- The new location for this maneuverpublic void translate(double offsetNorth, double offsetEast, double offsetDown)
LocatedManeuver
translate
in interface LocatedManeuver
offsetNorth
- north offset amount, in metersoffsetEast
- east offset amount, in metersoffsetDown
- down offset amount, in metersprotected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties
in class Maneuver
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
setProperties
in class Maneuver
public java.lang.String getTooltipText()
getTooltipText
in class Maneuver
public double getBearing()
public void setBearing(double bearing)
public java.lang.String getDirection()
public void setDirection(java.lang.String direction)
public double getLength()
public void setLength(double length)
public LocationType getLocation()
public int getLoiterDuration()
public void setLoiterDuration(int loiterDuration)
public double getRadius()
public void setRadius(double radius)
public double getRadiusTolerance()
public void setRadiusTolerance(double radiusTolerance)
public double getSpeed()
public void setSpeed(double speed)
public double getSpeedTolerance()
public void setSpeedTolerance(double speedTolerance)
public java.lang.String getSpeedUnits()
public void setSpeedUnits(java.lang.String speedUnits)
public void setLoiterType(java.lang.String loiterType)
public java.lang.String getLoiterType()
protected double getVelocityInMetersPerSeconds()
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class Maneuver
public void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage
in interface IMCSerialization
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
public double getCompletionTime(LocationType initialPosition)
getCompletionTime
in interface StatisticsProvider
public double getDistanceTravelled(LocationType initialPosition)
getDistanceTravelled
in interface StatisticsProvider
public double getMaxDepth()
getMaxDepth
in interface StatisticsProvider
public double getMinDepth()
getMinDepth
in interface StatisticsProvider
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.