public class RowsManeuver extends Maneuver implements LocatedManeuver, StateRendererInteraction, IMCSerialization, StatisticsProvider, PathProvider
Maneuver.SPEED_UNITS, Maneuver.Z_UNITS| Modifier and Type | Field and Description |
|---|---|
protected InteractionAdapter |
adapter |
protected float |
alternationPercentage |
protected double |
bearingRad |
protected double |
crossAngleRadians |
protected double |
curvOff |
protected boolean |
editing |
protected boolean |
firstCurveRight |
protected double |
hstep |
protected java.awt.geom.Point2D |
lastDragPoint |
protected double |
latRad |
protected double |
length |
protected double |
lonRad |
protected boolean |
paintSSRangeShadow |
protected java.util.Vector<double[]> |
points |
protected double |
speed |
protected java.lang.String |
speed_units |
protected boolean |
squareCurve |
protected double |
ssRangeShadow |
protected static int |
T |
protected double |
width |
protected static int |
X |
protected static int |
Y |
protected double |
z |
protected static int |
Z |
protected ManeuverLocation.Z_UNITS |
zunits |
circleDiam, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions| Constructor and Description |
|---|
RowsManeuver() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
protected ManeuverLocation |
calculatePosition() |
java.lang.Object |
clone()
A maneuver must have a way to clone itself.
|
float |
getAlternationPercent() |
double |
getBearingRad() |
double |
getCompletionTime(LocationType initialPosition) |
double |
getCrossAngleRadians() |
double |
getCurvOff() |
double |
getDistanceTravelled(LocationType initialPosition) |
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
double |
getHstep() |
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 |
getSpeed() |
double |
getSsRangeShadow() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
java.lang.String |
getTooltipText() |
java.lang.String |
getUnits() |
double |
getWidth() |
boolean |
isExclusive() |
boolean |
isPaintSSRangeShadow() |
boolean |
isSquareCurve() |
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)
The mission preview will call this function every second to refresh the vehicle state.
|
void |
mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseDragged(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 |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.up.fe.dceg.neptus.imc.IMCMessage message) |
pt.up.fe.dceg.neptus.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 |
setPaintSSRangeShadow(boolean paintSSRangeShadow) |
void |
setParams(double width,
double length,
double hstep,
double alternationPercent,
double curvOff,
boolean squareCurve,
double bearingRad,
double crossAngleRadians,
boolean firstCurveRight,
boolean paintSSRangeShadow,
short ssRangeShadow)
At the end call
recalcPoints() to update maneuver points |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
setSpeed(double speed) |
void |
setSsRangeShadow(double ssRangeShadow) |
void |
setUnits(java.lang.String speed_units) |
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, calcFinalState, 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, toStringprotected double latRad
protected double lonRad
protected double z
protected double speed
protected double bearingRad
protected double width
protected double length
protected double hstep
protected double ssRangeShadow
protected double crossAngleRadians
protected double curvOff
protected float alternationPercentage
protected boolean squareCurve
protected boolean firstCurveRight
protected boolean paintSSRangeShadow
protected java.lang.String speed_units
protected ManeuverLocation.Z_UNITS zunits
protected InteractionAdapter adapter
protected java.awt.geom.Point2D lastDragPoint
protected boolean editing
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 ManeuverLocation calculatePosition()
public void loadFromXML(java.lang.String xml)
loadFromXML in class Maneuverpublic java.lang.Object clone()
Maneuverpublic SystemPositionAndAttitude ManeuverFunction(SystemPositionAndAttitude lastVehicleState)
ManeuverManeuverFunction in class Maneuverpublic org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
getManeuverAsDocument 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 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 setActive(boolean mode,
StateRenderer2D source)
setActive in interface StateRendererInteractionpublic 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 double getBearingRad()
public void setBearingRad(double bearingRad)
bearingRad - the bearingRad to setpublic void setParams(double width,
double length,
double hstep,
double alternationPercent,
double curvOff,
boolean squareCurve,
double bearingRad,
double crossAngleRadians,
boolean firstCurveRight,
boolean paintSSRangeShadow,
short ssRangeShadow)
recalcPoints() to update maneuver pointswidth - length - hstep - alternationPercent - curvOff - squareCurve - bearingRad - crossAngleRadians - firstCurveRight - public double getWidth()
public double getHstep()
public float getAlternationPercent()
public double getCurvOff()
public boolean isSquareCurve()
public double getCrossAngleRadians()
public boolean isPaintSSRangeShadow()
public void setPaintSSRangeShadow(boolean paintSSRangeShadow)
paintSSRangeShadow - the paintSSRangeShadow to setpublic double getSsRangeShadow()
public void setSsRangeShadow(double ssRangeShadow)
ssRangeShadow - the ssRangeShadow to setpublic void paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer)
paintOnMap in class Maneuverpublic pt.up.fe.dceg.neptus.imc.IMCMessage serializeToIMC()
serializeToIMC in interface IMCSerializationpublic void parseIMCMessage(pt.up.fe.dceg.neptus.imc.IMCMessage message)
parseIMCMessage in interface IMCSerializationpublic void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties in interface PropertiesProvidersetProperties in class Maneuverprotected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties in class Maneuverpublic double getSpeed()
public void setSpeed(double speed)
public java.lang.String getUnits()
public void setUnits(java.lang.String speed_units)
public 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 java.lang.String getTooltipText()
getTooltipText in class Maneuverpublic void setAssociatedSwitch(ToolbarSwitch tswitch)
setAssociatedSwitch in interface StateRendererInteractionpublic static void main(java.lang.String[] args)
Copyright © 2004-2013 FEUP-LSTS and Neptus developers. All Rights Reserved.