public class FollowTrajectory extends Maneuver implements LocatedManeuver, StatisticsProvider, StateRendererInteraction, IMCSerialization, PathProvider
Maneuver.SPEED_UNITS, Maneuver.Z_UNITS
Modifier and Type | Field and Description |
---|---|
protected InteractionAdapter |
adapter |
protected boolean |
editing |
protected boolean |
hasTime |
protected java.awt.geom.Point2D |
lastDragPoint |
protected static double |
PERCENT_MPS_CONVERSION |
protected java.util.Vector<double[]> |
points |
protected static double |
RPM_MPS_CONVERSION |
protected static double |
RPM_PERCENT_CONVERSION |
protected double |
speed |
protected java.lang.String |
speed_units |
protected ManeuverLocation |
startLoc |
protected static int |
T |
protected static int |
X |
protected static int |
Y |
protected static int |
Z |
circleDiam, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions
Constructor and Description |
---|
FollowTrajectory() |
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.
|
protected void |
editPointsDialog(java.awt.Window parent) |
void |
focusGained(java.awt.event.FocusEvent event,
StateRenderer2D source) |
void |
focusLost(java.awt.event.FocusEvent event,
StateRenderer2D source) |
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) |
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() |
double |
getRadiusTolerance() |
double |
getSpeed() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
java.lang.String |
getUnits() |
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 |
loadFromXML(java.lang.String xml) |
static void |
main(java.lang.String[] args) |
SystemPositionAndAttitude |
ManeuverFunction(SystemPositionAndAttitude lastVehicleState) |
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) |
protected void |
recalculateTimes() |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setActive(boolean mode,
StateRenderer2D source) |
void |
setAssociatedSwitch(ToolbarSwitch tswitch) |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setOffsets(java.util.Vector<double[]> coordinates) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setSpeed(double speed) |
void |
setSpeedUnits(java.lang.String units) |
protected static void |
test1() |
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, getType, getXPosition, getYPosition, hasEnded, interpolate, isInitialManeuver, loadFromXMLExtraParameters, loadFromXMLExtraParameters, loadManeuverXml, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setXPosition, setYPosition, toString
protected boolean hasTime
protected static final double RPM_MPS_CONVERSION
protected static final double RPM_PERCENT_CONVERSION
protected static final double PERCENT_MPS_CONVERSION
protected ManeuverLocation startLoc
protected double speed
protected java.lang.String speed_units
protected java.util.Vector<double[]> points
protected static final int X
protected static final int Y
protected static final int Z
protected static final int T
protected InteractionAdapter adapter
protected java.awt.geom.Point2D lastDragPoint
protected boolean editing
public java.lang.String getName()
getName
in interface StateRendererInteraction
public void setOffsets(java.util.Vector<double[]> coordinates)
public void loadFromXML(java.lang.String xml)
loadFromXML
in class Maneuver
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
getManeuverAsDocument
in class Maneuver
public java.lang.Object clone()
Maneuver
public java.awt.Image getIconImage()
getIconImage
in interface StateRendererInteraction
public java.awt.Cursor getMouseCursor()
getMouseCursor
in interface StateRendererInteraction
public boolean isExclusive()
isExclusive
in interface StateRendererInteraction
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class Maneuver
protected void editPointsDialog(java.awt.Window parent)
public void mouseClicked(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseClicked
in interface StateRendererInteraction
public void mousePressed(java.awt.event.MouseEvent event, StateRenderer2D source)
mousePressed
in interface StateRendererInteraction
public void mouseDragged(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseDragged
in interface StateRendererInteraction
public void mouseMoved(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseMoved
in interface StateRendererInteraction
public void mouseReleased(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseReleased
in interface StateRendererInteraction
public void wheelMoved(java.awt.event.MouseWheelEvent event, StateRenderer2D source)
wheelMoved
in interface StateRendererInteraction
public void keyPressed(java.awt.event.KeyEvent event, StateRenderer2D source)
keyPressed
in interface StateRendererInteraction
public void keyReleased(java.awt.event.KeyEvent event, StateRenderer2D source)
keyReleased
in interface StateRendererInteraction
public void keyTyped(java.awt.event.KeyEvent event, StateRenderer2D source)
keyTyped
in interface StateRendererInteraction
public void mouseExited(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseExited
in interface StateRendererInteraction
public void focusGained(java.awt.event.FocusEvent event, StateRenderer2D source)
focusGained
in interface StateRendererInteraction
public void focusLost(java.awt.event.FocusEvent event, StateRenderer2D source)
focusLost
in interface StateRendererInteraction
public void setActive(boolean mode, StateRenderer2D source)
setActive
in interface StateRendererInteraction
public void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch
in interface StateRendererInteraction
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 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 meterspublic java.util.List<double[]> getPathPoints()
getPathPoints
in interface PathProvider
public java.util.List<LocationType> getPathLocations()
getPathLocations
in interface PathProvider
public SystemPositionAndAttitude ManeuverFunction(SystemPositionAndAttitude lastVehicleState)
public double getRadiusTolerance()
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.String getUnits()
public void setSpeedUnits(java.lang.String units)
public double getSpeed()
public void setSpeed(double speed)
protected void recalculateTimes()
public java.lang.String getTooltipText()
getTooltipText
in class Maneuver
protected static void test1()
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 void paintInteraction(java.awt.Graphics2D g, StateRenderer2D source)
paintInteraction
in interface StateRendererInteraction
public static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.