public class VehicleFormation extends FollowTrajectory
Maneuver.SPEED_UNITS, Maneuver.Z_UNITS
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<java.lang.Double[]> |
participantOffsets
Offsets to main trajectory, in meters:
[0] Along-track offset
[1] Cross-track offset
[2] Depth (positive) offset
|
protected java.util.Vector<VehicleType> |
participants
list of participants
|
protected long |
startTime
Start time (required only for rendezvous) in milliseconds since 01-01-1970
|
adapter, editing, hasTime, lastDragPoint, PERCENT_MPS_CONVERSION, points, RPM_MPS_CONVERSION, RPM_PERCENT_CONVERSION, speed, speed_units, startLoc, T, X, Y, Z
circleDiam, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions
Constructor and Description |
---|
VehicleFormation() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
A maneuver must have a way to clone itself.
|
org.dom4j.Document |
getManeuverAsDocument(java.lang.String rootElementName) |
protected javax.swing.JFormattedTextField |
getOffsetTextField() |
java.util.Vector<java.lang.Double[]> |
getParticipantOffsets() |
java.util.Vector<VehicleType> |
getParticipants() |
long |
getStartTime() |
void |
loadFromXML(java.lang.String xml) |
static void |
main(java.lang.String[] args) |
void |
mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage msg)
Parse an IMC message into this object fields
|
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setParticipantOffsets(java.util.Vector<java.lang.Double[]> participantOffsets) |
void |
setParticipants(java.util.Vector<VehicleType> participants) |
void |
setStartTime(long startTime) |
additionalProperties, editPointsDialog, focusGained, focusLost, getCompletionTime, getDistanceTravelled, getEndLocation, getIconImage, getManeuverLocation, getMaxDepth, getMinDepth, getMouseCursor, getName, getPathLocations, getPathPoints, getRadiusTolerance, getSpeed, getStartLocation, getTooltipText, getUnits, isExclusive, keyPressed, keyReleased, keyTyped, ManeuverFunction, mouseDragged, mouseExited, mouseMoved, mousePressed, mouseReleased, paintInteraction, paintOnMap, recalculateTimes, setActive, setAssociatedSwitch, setManeuverLocation, setOffsets, setProperties, setSpeed, setSpeedUnits, test1, translate, wheelMoved
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 java.util.Vector<VehicleType> participants
protected java.util.Vector<java.lang.Double[]> participantOffsets
protected long startTime
public long getStartTime()
public void setStartTime(long startTime)
startTime
- the startTime to setpublic java.util.Vector<java.lang.Double[]> getParticipantOffsets()
public void setParticipantOffsets(java.util.Vector<java.lang.Double[]> participantOffsets)
participantOffsets
- the participantOffsets to setpublic java.util.Vector<VehicleType> getParticipants()
public void setParticipants(java.util.Vector<VehicleType> participants)
participants
- the participants to setpublic java.lang.Object clone()
Maneuver
clone
in class FollowTrajectory
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
serializeToIMC
in class FollowTrajectory
public void parseIMCMessage(pt.lsts.imc.IMCMessage msg)
parseIMCMessage
in interface IMCSerialization
parseIMCMessage
in class FollowTrajectory
msg
- VehicleFormation IMC message to be parsedpublic org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
getManeuverAsDocument
in class FollowTrajectory
public void loadFromXML(java.lang.String xml)
loadFromXML
in class FollowTrajectory
protected javax.swing.JFormattedTextField getOffsetTextField()
public void mouseClicked(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseClicked
in interface StateRendererInteraction
mouseClicked
in class FollowTrajectory
public static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.