public class StationKeeping extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, IMCSerialization, StatisticsProvider
Modifier and Type | Field and Description |
---|---|
static int |
INFINITY_DURATION |
static double |
MINIMUM_SK_RADIUS |
circleDiam, COLOR_HELP, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions, T, vehicles, X, Y, Z
Constructor and Description |
---|
StationKeeping() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
Clone this maneuver
|
double |
getCompletionTime(LocationType initialPosition) |
double |
getDistanceTravelled(LocationType initialPosition) |
int |
getDuration() |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
LocationType |
getLocation() |
org.dom4j.Document |
getManeuverAsDocument(java.lang.String rootElementName)
Get each maneuver specific data.
|
ManeuverLocation |
getManeuverLocation()
Retrieve the position of the maneuver (position that can be dragged by the user)
|
double |
getMaxDepth() |
double |
getMinDepth() |
int |
getPopupDuration() |
int |
getPopupPeriod() |
double |
getRadius() |
SpeedType |
getSpeed() |
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.
|
java.util.Collection<ManeuverLocation> |
getWaypoints() |
boolean |
isKeepSafe() |
void |
loadManeuverFromXML(java.lang.String XML)
Expects only maneuver specific data.
|
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
pt.lsts.imc.StationKeeping |
serializetoRegularSKeeping() |
pt.lsts.imc.StationKeepingExtended |
serializetoSafeSKeeping() |
void |
setDuration(int duration) |
void |
setKeepSafe(boolean keepSafe) |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setPopupDuration(int popupDuration) |
void |
setPopupPeriod(int popupPeriod) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setRadius(double radius) |
void |
setSpeed(SpeedType speed)
Sets the speed
|
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, loadXMLWithSettings, loadXMLWithSettings, loadXMLWithSettings, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setVehicle, setVehicles, setXPosition, setYPosition, toString
public static final int INFINITY_DURATION
public static final double MINIMUM_SK_RADIUS
public java.lang.Object clone()
Maneuver
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
Maneuver
getManeuverAsDocument
in class Maneuver
public java.lang.String getType()
Maneuver
public void loadManeuverFromXML(java.lang.String XML)
Maneuver
loadManeuverFromXML
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 LocationType getLocation()
public int getDuration()
public void setDuration(int duration)
public double getRadius()
public void setRadius(double radius)
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.StationKeeping serializetoRegularSKeeping()
public pt.lsts.imc.StationKeepingExtended serializetoSafeSKeeping()
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
public boolean isKeepSafe()
public void setKeepSafe(boolean keepSafe)
keepSafe
- the keepSafe to setpublic int getPopupPeriod()
public void setPopupPeriod(int popupPeriod)
popupPeriod
- the popupPeriod to setpublic int getPopupDuration()
public void setPopupDuration(int popupDuration)
popupDuration
- the popupDuration to setpublic java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints
in interface LocatedManeuver
public SpeedType getSpeed()
getSpeed
in interface ManeuverWithSpeed
public void setSpeed(SpeedType speed)
ManeuverWithSpeed
setSpeed
in interface ManeuverWithSpeed
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.