public class PopUp extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, IMCSerialization
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
protected ManeuverLocation |
destination |
protected int |
duration |
protected double |
radiusTolerance |
protected SpeedType |
speed |
circleDiam, COLOR_HELP, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, endActions, id, startActions, T, vehicles, X, Y, Z| Constructor and Description |
|---|
PopUp() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
Clone this maneuver
|
int |
getDuration() |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
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)
|
java.lang.String |
getPropertiesDialogTitle() |
java.lang.String[] |
getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties) |
double |
getRadiusTolerance() |
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 |
isCurrPos() |
boolean |
isStationKeep() |
boolean |
isWaitAtSurface() |
void |
loadManeuverFromXML(java.lang.String xml)
Expects only maneuver specific data.
|
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 |
setCurrPos(boolean currPos) |
void |
setDuration(int duration) |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setRadiusTolerance(double radiusTolerance) |
void |
setSpeed(SpeedType speed)
Sets the speed
|
void |
setWaitAtSurface(boolean waitAtSurface) |
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, 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, toStringprotected double radiusTolerance
protected int duration
protected SpeedType speed
protected ManeuverLocation destination
protected static final java.lang.String DEFAULT_ROOT_ELEMENT
public java.lang.String getType()
Maneuverpublic org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
ManeuvergetManeuverAsDocument in class Maneuverpublic void loadManeuverFromXML(java.lang.String xml)
ManeuverloadManeuverFromXML in class Maneuverpublic java.lang.Object clone()
Maneuverpublic double getRadiusTolerance()
public void setRadiusTolerance(double radiusTolerance)
public int getDuration()
public void setDuration(int duration)
duration - the duration to setpublic void translate(double offsetNorth,
double offsetEast,
double offsetDown)
LocatedManeuvertranslate in interface LocatedManeuveroffsetNorth - 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 Maneuverpublic java.lang.String getPropertiesDialogTitle()
getPropertiesDialogTitle in interface PropertiesProvidergetPropertiesDialogTitle in class Maneuverpublic void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties in interface PropertiesProvidersetProperties in class Maneuverpublic java.lang.String[] getPropertiesErrors(com.l2fprod.common.propertysheet.Property[] properties)
getPropertiesErrors in interface PropertiesProvidergetPropertiesErrors in class Maneuverpublic ManeuverLocation getManeuverLocation()
LocatedManeuvergetManeuverLocation in interface LocatedManeuverpublic ManeuverLocation getStartLocation()
LocatedManeuvergetStartLocation in interface LocatedManeuverpublic ManeuverLocation getEndLocation()
LocatedManeuvergetEndLocation in interface LocatedManeuverpublic void setManeuverLocation(ManeuverLocation location)
LocatedManeuversetManeuverLocation in interface LocatedManeuverlocation - The new location for this maneuverpublic boolean isCurrPos()
public void setCurrPos(boolean currPos)
currPos - the currPos to setpublic boolean isWaitAtSurface()
public void setWaitAtSurface(boolean waitAtSurface)
waitAtSurface - the waitAtSurface to setpublic boolean isStationKeep()
public java.lang.String getTooltipText()
getTooltipText in class Maneuverpublic void paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer)
paintOnMap in class Maneuverpublic void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage in interface IMCSerializationpublic pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC in interface IMCSerializationpublic java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints in interface LocatedManeuverpublic static void main(java.lang.String[] args)
public SpeedType getSpeed()
getSpeed in interface ManeuverWithSpeedpublic void setSpeed(SpeedType speed)
ManeuverWithSpeedsetSpeed in interface ManeuverWithSpeedCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.