public class FollowTrajectory extends Maneuver implements LocatedManeuver, ManeuverWithSpeed, StatisticsProvider, StateRendererInteraction, IMCSerialization, PathProvider
| Modifier and Type | Field and Description |
|---|---|
protected InteractionAdapter |
adapter |
protected boolean |
editing |
protected java.lang.String |
editingHelpText |
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 boolean |
showEditingText |
protected SpeedType |
speed |
protected ManeuverLocation |
startLoc |
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 |
|---|
FollowTrajectory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
Clone this maneuver
|
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)
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() |
double |
getRadiusTolerance() |
SpeedType |
getSpeed() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
java.util.Collection<ManeuverLocation> |
getWaypoints() |
boolean |
isEditing() |
boolean |
isExclusive() |
boolean |
isShowEditingText() |
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) |
protected void |
recalculateTimes() |
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setActive(boolean mode,
StateRenderer2D source) |
void |
setAssociatedSwitch(ToolbarSwitch tswitch) |
void |
setEditing(boolean editing) |
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 |
setShowEditingText(boolean showEditingText) |
void |
setSpeed(SpeedType speed)
Sets the speed
|
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, loadXMLWithSettings, loadXMLWithSettings, loadXMLWithSettings, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setVehicle, setVehicles, setXPosition, setYPosition, toStringprotected boolean hasTime
protected static final double RPM_MPS_CONVERSION
protected static final double RPM_PERCENT_CONVERSION
protected static final double PERCENT_MPS_CONVERSION
protected java.lang.String editingHelpText
protected ManeuverLocation startLoc
protected SpeedType speed
protected java.util.Vector<double[]> points
protected InteractionAdapter adapter
protected java.awt.geom.Point2D lastDragPoint
protected boolean editing
protected boolean showEditingText
public boolean isEditing()
public void setEditing(boolean editing)
public boolean isShowEditingText()
public void setShowEditingText(boolean showEditingText)
public java.lang.String getName()
getName in interface StateRendererInteractionpublic void setOffsets(java.util.Vector<double[]> coordinates)
public void loadManeuverFromXML(java.lang.String xml)
ManeuverloadManeuverFromXML in class Maneuverpublic org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
ManeuvergetManeuverAsDocument in class Maneuverpublic java.lang.Object clone()
Maneuverpublic java.awt.Image getIconImage()
getIconImage in interface StateRendererInteractionpublic java.awt.Cursor getMouseCursor()
getMouseCursor in interface StateRendererInteractionpublic boolean isExclusive()
isExclusive in interface StateRendererInteractionpublic void paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer)
paintOnMap in class Maneuverprotected void editPointsDialog(java.awt.Window parent)
public 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 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 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 mouseExited(java.awt.event.MouseEvent event,
StateRenderer2D source)
mouseExited in interface StateRendererInteractionpublic void focusGained(java.awt.event.FocusEvent event,
StateRenderer2D source)
focusGained in interface StateRendererInteractionpublic void focusLost(java.awt.event.FocusEvent event,
StateRenderer2D source)
focusLost in interface StateRendererInteractionpublic void setActive(boolean mode,
StateRenderer2D source)
setActive in interface StateRendererInteractionpublic void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch in interface StateRendererInteractionpublic 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 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 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 java.util.List<double[]> getPathPoints()
getPathPoints in interface PathProviderpublic java.util.List<LocationType> getPathLocations()
getPathLocations in interface PathProviderpublic java.util.Collection<ManeuverLocation> getWaypoints()
getWaypoints in interface LocatedManeuverpublic double getRadiusTolerance()
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC in interface IMCSerializationpublic void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage in interface IMCSerializationprotected void recalculateTimes()
public java.lang.String getTooltipText()
getTooltipText in class Maneuverprotected static void test1()
protected 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 void paintInteraction(java.awt.Graphics2D g,
StateRenderer2D source)
paintInteraction in interface StateRendererInteractionpublic 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.