public class Magnetometer extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, StateRendererInteraction, IMCSerialization, StatisticsProvider, PathProvider
| Modifier and Type | Field and Description |
|---|---|
protected InteractionAdapter |
adapter |
protected double |
bearingRad |
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
protected boolean |
editing |
protected boolean |
firstClockwise |
protected java.util.Vector<double[]> |
points |
protected SpeedType |
speed |
protected double |
width |
circleDiam, COLOR_HELP, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, endActions, id, startActions, T, vehicles, X, Y, Z| Constructor and Description |
|---|
Magnetometer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
static java.util.Vector<double[]> |
calcMagnetometerPoints(double width,
double bearingRad,
boolean clockwise) |
java.lang.Object |
clone()
Clone this maneuver
|
void |
focusGained(java.awt.event.FocusEvent event,
StateRenderer2D source) |
void |
focusLost(java.awt.event.FocusEvent event,
StateRenderer2D source) |
double |
getBearingRad() |
double |
getCompletionTime(LocationType initialPosition) |
double |
getDistanceTravelled(LocationType initialPosition) |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
java.awt.Image |
getIconImage() |
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() |
java.awt.Cursor |
getMouseCursor() |
java.lang.String |
getName() |
java.util.List<LocationType> |
getPathLocations() |
java.util.List<double[]> |
getPathPoints() |
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() |
double |
getWidth() |
boolean |
isExclusive() |
void |
keyPressed(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
keyReleased(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
keyTyped(java.awt.event.KeyEvent event,
StateRenderer2D source) |
void |
loadManeuverFromXML(java.lang.String xml)
Expects only maneuver specific data.
|
static void |
main(java.lang.String[] args) |
void |
mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseDragged(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseExited(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseMoved(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mousePressed(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseReleased(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
paintInteraction(java.awt.Graphics2D g,
StateRenderer2D source) |
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setActive(boolean mode,
StateRenderer2D source) |
void |
setAssociatedSwitch(ToolbarSwitch tswitch) |
void |
setBearingRad(double bearingRad) |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setSpeed(SpeedType speed)
Sets the speed
|
void |
translate(double offsetNorth,
double offsetEast,
double offsetDown)
Translate the position of this maneuver
|
void |
wheelMoved(java.awt.event.MouseWheelEvent event,
StateRenderer2D source) |
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, toStringprotected static final java.lang.String DEFAULT_ROOT_ELEMENT
protected double bearingRad
protected double width
protected boolean firstClockwise
protected SpeedType speed
protected InteractionAdapter adapter
protected boolean editing
protected java.util.Vector<double[]> points
public static java.util.Vector<double[]> calcMagnetometerPoints(double width,
double bearingRad,
boolean clockwise)
public void loadManeuverFromXML(java.lang.String xml)
ManeuverloadManeuverFromXML in class Maneuverpublic ManeuverLocation getManeuverLocation()
LocatedManeuvergetManeuverLocation in interface LocatedManeuverpublic ManeuverLocation getEndLocation()
LocatedManeuvergetEndLocation in interface LocatedManeuverpublic ManeuverLocation getStartLocation()
LocatedManeuvergetStartLocation in interface LocatedManeuverpublic void setManeuverLocation(ManeuverLocation location)
LocatedManeuversetManeuverLocation in interface LocatedManeuverlocation - The new location for this maneuverpublic java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints in interface LocatedManeuverpublic 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 meterspublic void paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer)
paintOnMap in class Maneuverpublic java.lang.Object clone()
Maneuverpublic org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
ManeuvergetManeuverAsDocument in class Maneuverpublic java.lang.String getType()
Maneuverprotected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties in class Maneuverpublic void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties in interface PropertiesProvidersetProperties in class Maneuverpublic java.lang.String getTooltipText()
getTooltipText in class Maneuverpublic java.lang.String getName()
getName in interface StateRendererInteractionpublic java.awt.Image getIconImage()
getIconImage in interface StateRendererInteractionpublic java.awt.Cursor getMouseCursor()
getMouseCursor in interface StateRendererInteractionpublic boolean isExclusive()
isExclusive in interface StateRendererInteractionpublic void mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseClicked in interface StateRendererInteractionpublic void mousePressed(java.awt.event.MouseEvent event,
StateRenderer2D source)
mousePressed in interface StateRendererInteractionpublic void mouseDragged(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseDragged in interface StateRendererInteractionpublic void mouseMoved(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseMoved in interface StateRendererInteractionpublic void mouseExited(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseExited in interface StateRendererInteractionpublic void mouseReleased(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseReleased in interface StateRendererInteractionpublic void wheelMoved(java.awt.event.MouseWheelEvent event,
StateRenderer2D source)
wheelMoved in interface StateRendererInteractionpublic void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch in interface StateRendererInteractionpublic void keyPressed(java.awt.event.KeyEvent event,
StateRenderer2D source)
keyPressed in interface StateRendererInteractionpublic void keyReleased(java.awt.event.KeyEvent event,
StateRenderer2D source)
keyReleased in interface StateRendererInteractionpublic void keyTyped(java.awt.event.KeyEvent event,
StateRenderer2D source)
keyTyped in interface StateRendererInteractionpublic void focusLost(java.awt.event.FocusEvent event,
StateRenderer2D source)
focusLost in interface StateRendererInteractionpublic void focusGained(java.awt.event.FocusEvent event,
StateRenderer2D source)
focusGained in interface StateRendererInteractionpublic void setActive(boolean mode,
StateRenderer2D source)
setActive in interface StateRendererInteractionpublic void paintInteraction(java.awt.Graphics2D g,
StateRenderer2D source)
paintInteraction in interface StateRendererInteractionpublic java.util.List<double[]> getPathPoints()
getPathPoints in interface PathProviderpublic java.util.List<LocationType> getPathLocations()
getPathLocations in interface PathProviderpublic double getBearingRad()
public void setBearingRad(double bearingRad)
bearingRad - the bearingRad to setpublic double getWidth()
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC in interface IMCSerializationpublic void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage in interface IMCSerializationpublic double getCompletionTime(LocationType initialPosition)
getCompletionTime in interface StatisticsProviderpublic double getDistanceTravelled(LocationType initialPosition)
getDistanceTravelled in interface StatisticsProviderpublic double getMaxDepth()
getMaxDepth in interface StatisticsProviderpublic double getMinDepth()
getMinDepth in interface StatisticsProviderpublic SpeedType getSpeed()
getSpeed in interface ManeuverWithSpeedpublic void setSpeed(SpeedType speed)
ManeuverWithSpeedsetSpeed in interface ManeuverWithSpeedpublic static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.