public class CompassCalibration extends Maneuver implements LocatedManeuver, IMCSerialization, StatisticsProvider
Maneuver.SPEED_UNITS, Maneuver.Z_UNITS
Modifier and Type | Field and Description |
---|---|
double |
amplitude |
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
pt.lsts.imc.CompassCalibration.DIRECTION |
direction |
int |
duration |
ManeuverLocation |
location |
double |
pitchDegs |
float |
radius |
double |
speed |
java.lang.String |
speedUnits |
circleDiam, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, endActions, id, startActions
Constructor and Description |
---|
CompassCalibration() |
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 |
getCompletionTime(LocationType initialPosition) |
double |
getDistanceTravelled(LocationType initialPosition) |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
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() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
void |
loadFromXML(java.lang.String xml) |
static void |
main(java.lang.String[] args) |
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setManeuverLocation(ManeuverLocation loc)
Set the maneuver's position
|
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
translate(double offsetNorth,
double offsetEast,
double offsetDown)
Translate the position of this maneuver
|
java.lang.String |
validatePitchDegs(double value) |
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, getType, getXPosition, getYPosition, hasEnded, interpolate, isInitialManeuver, loadFromXMLExtraParameters, loadFromXMLExtraParameters, loadManeuverXml, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setXPosition, setYPosition, toString
protected static final java.lang.String DEFAULT_ROOT_ELEMENT
public ManeuverLocation location
public double speed
public java.lang.String speedUnits
public double pitchDegs
public double amplitude
public int duration
public float radius
public pt.lsts.imc.CompassCalibration.DIRECTION direction
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
getManeuverAsDocument
in class Maneuver
public void loadFromXML(java.lang.String xml)
loadFromXML
in class Maneuver
public ManeuverLocation getManeuverLocation()
LocatedManeuver
getManeuverLocation
in interface LocatedManeuver
public ManeuverLocation getEndLocation()
LocatedManeuver
getEndLocation
in interface LocatedManeuver
public ManeuverLocation getStartLocation()
LocatedManeuver
getStartLocation
in interface LocatedManeuver
public void setManeuverLocation(ManeuverLocation loc)
LocatedManeuver
setManeuverLocation
in interface LocatedManeuver
loc
- 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 meterspublic java.lang.String getTooltipText()
getTooltipText
in class Maneuver
public java.lang.String validatePitchDegs(double value)
protected 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 pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
public void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage
in interface IMCSerialization
public java.lang.Object clone()
Maneuver
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class Maneuver
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
public static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.