public class AvclMission extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ABOVEGROUNDLEVELCONTROL
Above Ground Level (AGL) enumeration for aircraft altitude control type.
|
static int |
ABSOLUTE_TIMING
Enumeration for absolute timing, meaning that time values are actual clock values.
|
static int |
AGENDA
Enumeration for mission type: non-vehicle-specific agenda planning mission
|
static int |
AGENDA_AVOIDAREAELEMENT
Enumeration value for allowed commandType
|
static int |
AGENDA_GOAL
Enumeration value for allowed commandType
|
static int |
AGENDA_LAUNCH_POSITION
Enumeration value for allowed commandType
|
static int |
AGENDA_RECOVERY_POSITION
Enumeration value for allowed commandType
|
static int |
AGENDA_ROUTEELEMENT
Enumeration value for allowed commandType
|
protected AgendaConstraintListType |
agendaConstraintList
Handle to the list containing strategic-level agenda constraints
|
protected AgendaGoalListType |
agendaGoalList
Handle to the list containing strategic-level agenda goals
|
protected AgendaMissionElementType |
agendaMission
Handle to the strategic-level agenda mission element
|
static int |
AGL
Enumeration for commanded altitude type, Above Ground Level
|
static int |
ALLPLANES
Enumeration value for commanded plane surfaces
|
static int |
ALLPROPELLERS
Enumeration value for commanded propellers
|
static int |
ALLTRACKS
Enumeration value for ugv track type
|
static int |
ALTITUDE_ABV_BTM
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_ABV_BTM_BLK
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_AGL
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_AGL_BLK
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_AGL_MSL_BLK
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_MSL
Enumeration for block depth/altitude type
|
static int |
ALTITUDE_MSL_BLK
Enumeration for block depth/altitude type
|
static int |
ALTITUDECONTROL
Enumeration value for z-axis vertical control mode
|
static int |
ATTACK
Mission goal type
|
static String[] |
AVCL_COMMAND_NAMES
Enumeration values for allowed AVCL command names
|
static int |
BIOLOGICAL
Enumeration for contaminant type
|
protected AvclBodyType |
body
Handle to the AVCL body element
|
static int |
BOWLATERALTHRUSTER
Enumeration value for commanded body thrusters
|
static int |
BOWPLANES
Enumeration value for commanded plane surfaces
|
static int |
BOWVERTICALTHRUSTER
Enumeration value for commanded body thrusters
|
static int |
CENTERPROPELLER
Enumeration value for commanded propellers
|
static int |
CHEMICAL
Enumeration for contaminant type
|
static int |
CIRCLE
Enumeration for specifying a type of location geometry
|
protected List<JAXBElement<?>> |
commandElementList
Handle to the mission script command list
|
static int |
COMPOSITEWAYPOINT_COMMAND_UAV
Enumeration value for allowed commandType
|
static int |
COMPOSITEWAYPOINT_COMMAND_UGV
Enumeration value for allowed commandType
|
static int |
COMPOSITEWAYPOINT_COMMAND_USV
Enumeration value for allowed commandType
|
static int |
COMPOSITEWAYPOINT_COMMAND_UUV
Enumeration value for allowed commandType
|
static Color |
CURRENT_GOAL
Enumeration color for rendering mission status: current goal
|
static int |
DECONTAMINATE
Mission goal type
|
static int |
DEFAULTZCONTROL
Enumeration value for z-axis vertical control mode
|
static int |
DEMOLISH
Mission goal type
|
static int |
DEPTH
Enumeration for block depth/altitude type
|
static int |
DEPTH_ALTITUDE_ABV_BTM_BLK
Enumeration for block depth/altitude type
|
static int |
DEPTH_BLK
Enumeration for block depth/altitude type
|
static int |
DEPTHCONTROL
Enumeration value for z-axis vertical control mode
|
static String |
DIRECTTO
Enumeration for allowable homing/tracking mode used during waypoint navigation
|
static int |
DURATION_TIMING
Enumeration for relative timing, meaning that time values are duration intervals.
|
static int |
EDGESCAN
Enumeration value for target sonar scan mode
|
static int |
EGRESS_ROUTE
Enumeration for direction of routing (ingress or egress)
|
protected EventLogElementType |
eventLog
Handle to the Event Log element
|
protected List<Object> |
eventLogItems
Handle to the list of logged events
|
static int |
EXPANDINGSQUARE
Enumeration value for type of composite waypoint command
|
static int |
EXPLOSIVE
Enumeration for contaminant type
|
static int |
FOLLOWBEACON_COMMAND
Enumeration value for allowed commandType
|
static int |
FORWARDSCAN
Enumeration value for sonar scan mode
|
protected GeoOriginElementType |
geoOrigin
Handle to the GeoOrigin element
|
static int |
GIGAHERTZ
Enumeration for allowable frequency units
|
static String[] |
GOAL_NAMES |
static Color |
GOAL_ON_FAILURE
Enumeration color for rendering mission status: next goal on failure
|
static Color |
GOAL_ON_SUCCESS
Enumeration color for rendering mission status: next goal on success
|
static int |
GPSCOMPLETE
Enumeration value for GPS fix status
|
static int |
GPSFAIL
Enumeration value for GPS fix status
|
static int |
GPSFIX_COMMAND
Enumeration value for allowed commandType
|
static int |
GPSINPROGRESS
Enumeration value for GPS fix status
|
static int |
GPSSTART
Enumeration value for GPS fix status
|
protected AvclHeadType |
head
Handle to AVCL head element
|
static int |
HELP_COMMAND
Enumeration value for allowed commandType
|
static int |
HERTZ
Enumeration for allowable frequency units
|
static int |
HOVER_COMMAND
Enumeration value for allowed commandType
|
static int |
ILLUMINATE
Mission goal type
|
static int |
INGRESS_ROUTE
Enumeration for direction of routing (ingress or egress)
|
static Color |
INITIAL_GOAL
Enumeration color for rendering mission status: initial goal
|
static int |
JAM
Mission goal type
|
static int |
KILOHERTZ
Enumeration for allowable frequency units
|
static int |
KNOTS
Enumeration for type of speed units
|
static int |
LATERALTHRUSTERS
Enumeration value for commanded body thrusters
|
static int |
LATLONGPOSITION
Enumeration value for horizontal positioning representation
|
static int |
LEFT
Enumeration for commanded turn direction
|
static int |
LEFTTRACK
Enumeration value for ugv track type
|
static int |
LIMITING_LINE
Enumeration for specifying a type of location geometry
|
static int |
LOITER_COMMAND_UAV
Enumeration value for allowed commandType
|
static int |
LOITER_COMMAND_UGV
Enumeration value for allowed commandType
|
static int |
LOITER_COMMAND_USV
Enumeration value for allowed commandType
|
static int |
LOITER_COMMAND_UUV
Enumeration value for allowed commandType
|
static int |
MAGNETICBEARING
Enumeration value for bearing type
|
static int |
MAKEALTITUDE_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKEALTITUDEAGL_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKEALTITUDEMSL_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKECLIMBRATE_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKEDEPTH_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKEHEADING_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKEKNOTS_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKESPEED_COMMAND
Enumeration value for allowed commandType
|
static int |
MAKETURNRATE_COMMAND
Enumeration value for allowed commandType
|
static int |
MANUALSCAN
Enumeration value for sonar scan mode
|
static int |
MARK
Mission goal type
|
static int |
MEANSEALEVELCONTROL
Mean Sea Level (MSL) enumeration for aircraft altitude control type.
|
static int |
MEGAHERTZ
Enumeration for allowable frequency units
|
static int |
META_COMMAND
Enumeration value for allowed commandType
|
static int |
METERSPERSECOND
Enumeration for type of speed units
|
protected MissionPreparationElementType |
missionPreparation
Handle to the AVCL/body MissionPreparation element
|
protected MissionResultsElementType |
missionResults
Handle to the AVCL/body MissionResults element -- which might be null if not telemetry mission
|
static int |
MISSIONSCRIPT_COMMAND
Enumeration value for allowed commandType
|
static int |
MISSIONSCRIPTINLINE_COMMAND
Enumeration value for allowed commandType
|
static int |
MONITORTRANSMISSIONS
Mission goal type
|
static int |
MOVELATERAL_COMMAND
Enumeration value for allowed commandType
|
static int |
MOVEROTATE_COMMAND
Enumeration value for allowed commandType
|
static int |
MSL
Enumeration for commanded altitude type, Mean Sea Level
|
static int |
MUNITION
Enumeration for mission type: enhanced range munition
|
static int |
MUNITION_AIM_POSITION
Enumeration value for allowed commandType
|
static int |
MUNITION_LAUNCH_POSITION
Enumeration value for allowed commandType
|
protected GuidedMunitionMissionElementType |
munitionMission
Handle to the munition mission element for a munition mission
|
static int |
NOVALUE
Enumeration value indicating that no value was provided in a command (i.e. value is either missing or skipped)
|
static int |
NUCLEAR
Enumeration for contaminant type
|
static int |
NUMBER_GOAL_TYPES |
static int |
PARALLELTRACK
Enumeration value for type of composite waypoint command
|
static int |
PATROL
Mission goal type
|
static int |
POINT
Enumeration for specifying a type of location geometry
|
static int |
POLYGON
Enumeration for specifying a type of location geometry
|
static int |
PORT
Enumeration for commanded turn direction
|
static int |
PORTPROPELLER
Enumeration value for commanded propellers
|
static int |
POSITION_COMMAND_UAV
Enumeration value for allowed commandType
|
static int |
POSITION_COMMAND_UGV
Enumeration value for allowed commandType
|
static int |
POSITION_COMMAND_USV
Enumeration value for allowed commandType
|
static int |
POSITION_COMMAND_UUV
Enumeration value for allowed commandType
|
static Color |
PRIOR_GOAL
Enumeration color for rendering mission status: prior goal
|
static int |
QUIT_COMMAND
Enumeration value for allowed commandType
|
static int |
REALTIME_COMMAND
Enumeration value for allowed commandType
|
static int |
RECOVER_COMMAND
Enumeration value for allowed commandType
|
static int |
RECTANGLE
Enumeration for specifying a type of location geometry
|
static int |
RELATIVEBEARING
Enumeration value for bearing type
|
static int |
RELATIVEXYPOSITION
Enumeration value for horizontal positioning representation
|
static int |
RENDEZVOUS
Mission goal type
|
static int |
REPOSITION
Mission goal type
|
protected List<SampledResultsElementType> |
resultsList
Handle to MissionResults sampledResults list -- maybe null if not telemetry mission
|
static int |
RIGHT
Enumeration for commanded turn direction
|
static int |
RIGHTTRACK
Enumeration value for ugv track type
|
static int |
SAMPLEENVIRONMENT
Mission goal type
|
static int |
SEARCH
Mission goal type
|
static int |
SECTORPATTERN
Enumeration value for type of composite waypoint command
|
static int |
SENDMESSAGE_COMMAND
Enumeration value for allowed commandType
|
static int |
SETAILERON_COMMAND
Enumeration value for allowed commandType
|
static int |
SETELEVATOR_COMMAND
Enumeration value for allowed commandType
|
static int |
SETPLANES_COMMAND
Enumeration value for allowed commandType
|
static int |
SETPOWER_COMMAND
Enumeration value for allowed commandType
|
static int |
SETPROPELLER_COMMAND
Enumeration value for allowed commandType
|
static int |
SETRUDDER_COMMAND
Enumeration value for allowed commandType
|
static int |
SETSONAR_COMMAND
Enumeration value for allowed commandType
|
static int |
SETSTANDOFF_COMMAND
Enumeration value for allowed commandType
|
static int |
SETTHRUSTER_COMMAND
Enumeration value for allowed commandType
|
static int |
SETTIME_COMMAND
Enumeration value for allowed commandType
|
static int |
SETTIMESTEP_COMMAND
Enumeration value for allowed commandType
|
static int |
SETTRACKSPEED_COMMAND
Enumeration value for allowed commandType
|
static int |
STARBOARD
Enumeration for commanded turn direction
|
static int |
STBDPROPELLER
Enumeration value for commanded propellers
|
static int |
STERNLATERALTHRUSTER
Enumeration value for commanded body thrusters
|
static int |
STERNPLANES
Enumeration value for commanded plane surfaces
|
static int |
STERNVERTICALTHRUSTER
Enumeration value for commanded body thrusters
|
static int |
TAKESTATION_COMMAND
Enumeration value for allowed commandType
|
static int |
TARGETSCAN
Enumeration value for target sonar scan mode
|
protected EventLogElementType |
telemetryEventList
Handle to Telemetry event list
|
static int |
THRUSTERS_COMMAND
Enumeration value for allowed commandType
|
static int |
TOXIN
Enumeration for contaminant type
|
static int |
TRACE_COMMAND
Enumeration value for allowed commandType
|
static int |
TRACKSCAN
Enumeration value for sonar scan mode
|
static String |
TRACKTO
Enumeration for allowable tracking mode used during waypoint navigation
|
static int |
TRUEBEARING
Enumeration value for bearing type
|
static int |
UAV
Enumeration for mission type: unmanned air vehicle
|
protected UavScriptCommandsType |
uavCommandScript
Handle to the mission script element for a UUV mission
|
static int |
UGV
Enumeration for mission type: unmanned ground vehicle
|
protected UgvScriptCommandsType |
ugvCommandScript
Handle to the mission script element for a UGV mission
|
static int |
USV
Enumeration for mission type: unmanned surface vehicle
|
protected UsvScriptCommandsType |
usvCommandScript
Handle to the mission script element for a USV mission
|
static int |
UUV
Enumeration for mission type: unmanned underwater vehicle
|
protected UuvScriptCommandsType |
uuvCommandScript
Handle to the mission script element for a UUV mission
|
static int |
VERTICALTHRUSTERS
Enumeration value for commanded body thrusters
|
static int |
WAIT_COMMAND
Enumeration value for allowed commandType
|
static int |
WAITUNTILTIME_COMMAND
Enumeration value for allowed commandType
|
static int |
WAYPOINT_COMMAND_UAV
Enumeration value for allowed commandType
|
static int |
WAYPOINT_COMMAND_UGV
Enumeration value for allowed commandType
|
static int |
WAYPOINT_COMMAND_USV
Enumeration value for allowed commandType
|
static int |
WAYPOINT_COMMAND_UUV
Enumeration value for allowed commandType
|
static int |
WAYPOINTLIST
Enumeration value for type of composite waypoint command
|
static int |
XYPOSITION
Enumeration value for horizontal positioning representation
|
Constructor and Description |
---|
AvclMission(int vehicle)
Constructor for a specific vehicle AvclMission
|
AvclMission(Object obj)
Alternate constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAgendaAvoidArea(AreaElementType obj) |
void |
addAgendaAvoidArea(int index,
AreaElementType avoidArea) |
void |
addAgendaAvoidAreaElement(int index,
JAXBElement<?> element)
Inserts an Agenda Goal Element at the specified location of the command list,
current Agenda Goal Element is shifted down.
|
void |
addAgendaGoal(AgendaGoalElementType aget) |
void |
addAgendaGoal(int index,
AgendaGoalElementType aget) |
void |
addAgendaGoalElement(int index,
JAXBElement<?> element)
Inserts an Agenda Goal Element at the specified location of the command list,
current Agenda Goal Element is shifted down.
|
void |
addAgendaGoalElement(JAXBElement<?> element)
Adds an Agenda Goal Element to the end of the goal list
|
void |
addAgendaLaunchPosition(Object obj) |
void |
addAgendaRecoveryPosition(Object obj)
Sets the designated recovery position for an agenda mission
|
void |
addCommandElement(int index,
JAXBElement<?> commandElement)
Inserts a command at the specified location of the command list, current
element is shifted down.
|
void |
addCommandElement(JAXBElement<?> commandElement)
Adds a command element to the end of the command list
|
void |
addMunitionAimPosition(Object obj) |
void |
addMunitionLaunchPosition(Object obj) |
void |
addSampledResult(SampledResultsElementType newResult)
Adds a sampled result element to the mission results section of the object
|
static void |
addVehicleCapability(Object charEl,
String capability)
Adds a capability to the vehicle's capability list
|
boolean |
checkMetaElements(AVCL result)
Checks AVCL meta elements for proper entries and generates default elements if required
|
void |
clearCommandList()
Clears (deletes) all commands from the command list
|
void |
clearEventLog()
Clears all items from the event log
|
void |
clearGeoOrigin()
Clears the GeoOrigin element and deletes it without replacement
|
void |
clearMetaElements()
Clears (deletes) all meta elements in the document head section
|
int |
commandType(int index)
Returns an integer enumeration for the type of command at a specified location in the list
|
static int |
commandType(Object command) |
JAXBElement<?> |
copyCommandElement(int index)
Retrieves a command at a specified location in the list.
|
static DateTimeGroupElementType |
createCurrentDateTimeGroupElement(String description)
Creates a date time group element corresponding to the current time
|
void |
createGeoOrigin(double latitude,
double longitude,
double radius,
String description)
Generates a new GeoOrigin element and assigns it to the mission
|
void |
createHeadElement()
Generates a new head element and adds it to the mission
|
void |
createMetaElement(String name,
String content)
Generates a new meta element and adds it to the mission head section
|
static SampledResultsElementType |
createSampledResultElement(double time,
String description) |
static Object |
createVehicleCharacteristicsElement(int vehicleType)
Creates a vehicle characteristics element element for the specified type of vehicle
|
void |
generateAgendaConfigurationElement()
Generates a vehicle configuration element containing minimum unmanned vehicle
configuration requirements to successfully execute the currently defined mission
|
void |
generateEventLog()
Adds an EventLog element to the mission
|
void |
generateMunitionConfigurationElement()
Generates a vehicle configuration element containing minimum unmanned vehicle
configuration requirements to successfully execute the currently defined mission
|
void |
generateUavConfigurationElement()
Generates a vehicle configuration element containing minimum unmanned ground vehicle
configuration requirements to successfully execute the currently defined mission
|
void |
generateUgvConfigurationElement()
Generates a vehicle configuration element containing minimum unmanned ground vehicle
configuration requirements to successfully execute the currently defined mission
|
void |
generateUsvConfigurationElement()
Generates a vehicle configuration element containing minimum unmanned surface vehicle
configuration requirements to successfully execute the currently defined mission
|
AreaElementType |
getAgendaAvoidArea(int index) |
AgendaConstraintListType |
getAgendaConstraintList()
Returns a reference to the strategic-level agenda mission goals
|
List<AreaElementType> |
getAgendaConstraintListAvoidAreas()
Retrieve all agenda constraints
|
RouteElementType |
getAgendaConstraintsEgressRouting() |
RouteElementType |
getAgendaConstraintsIngressRouting() |
AgendaGoalElementType |
getAgendaGoal(int index) |
List<AgendaGoalElementType> |
getAgendaGoalList()
Returns a reference to the agenda mission goals
|
AgendaGoalListType |
getAgendaGoals()
Returns a reference to the agenda mission goals
|
AbsoluteHorizontalPositionElementType |
getAgendaLaunchPosition()
Returns a reference to the launch position element of an agenda mission
|
AgendaMissionElementType |
getAgendaMissionElement()
Returns the agenda mission element
|
AbsoluteHorizontalPositionElementType |
getAgendaRecoveryPosition()
Returns a reference to the recovery position element of an agenda mission
|
JAXBElement<?> |
getCommandElement(int index)
Returns the command at a specified location in the list.
|
List<JAXBElement<?>> |
getCommandElementList()
Returns a reference to the script command elements list
|
int |
getCommandListSize()
Returns the number of commands in the script
|
JAXBElement<?> |
getCommandTypeElement(Object cmd) |
ConfigurationElementType |
getConfiguration()
Returns the current Configuration element
|
static String |
getDescription(Object element) |
List<?> |
getEventLog() |
GeoOriginElementType |
getGeoOrigin() |
static double |
getGeoOriginLatitude(GeoOriginElementType go) |
static double |
getGeoOriginLongitude(GeoOriginElementType go) |
static double |
getGeoOriginRadius(GeoOriginElementType go) |
JAXBContext |
getJAXBContext()
Provide the
JAXBContext for the current AVCL mission, which is JAXB binding framework for unmarshal, marshal and validate operations |
JAXBIntrospector |
getJAXBIntrospector()
JAXB Introspector is used to invoke JAXBElement objects
|
double |
getLength()
TODO: Implement this
|
static String |
getMetaElementContent(JAXBElement<?> meta) |
static String |
getMetaElementDescription(JAXBElement<?> meta) |
List<MetaType> |
getMetaElementList() |
static String |
getMetaElementName(JAXBElement<?> meta) |
File |
getMissionFile() |
AVCL |
getMissionJaxb() |
MissionPreparationElementType |
getMissionPreparationElement() |
MunitionAimPointElementType |
getMunitionAimPosition() |
MunitionLaunchPointElementType |
getMunitionLaunchPosition() |
GuidedMunitionMissionElementType |
getMunitionMissionElement()
Returns the munition mission element
|
ObjectFactory |
getObjectFactory()
Object factory is used to generate content nodes defined during editing
|
static String |
getSampledResultDescription(SampledResultsElementType result) |
static double |
getSampledResultTime(SampledResultsElementType result) |
List<SampledResultsElementType> |
getTelemetryList() |
static double |
getTimeStamp(Object element)
Retrieve via introspection, the value of an element's timeStamp attribute
|
UnitsOfMeasureElementType |
getUnitsOfMeasure()
Returns the current Units of Measure element
|
String |
getUnitsOfMeasureAngle(Object uom) |
String |
getUnitsOfMeasureDistance(Object uom) |
String |
getUnitsOfMeasureTime(Object uom) |
static Object |
getVehicleCapability(Object charEl,
int index) |
int |
getVehicleIDParameter()
Sets the vehicle ID attribute
|
String |
getVehicleNameParameter()
Gets the vehicle name attribute
|
static int |
getVehicleNumCapabilities(Object charEl) |
int |
getVehicleType() |
String |
getVehicleTypeParameter()
Gets the vehicle type attribute
|
XMLValidationTool |
getXMLValidationTool() |
static AvclMission |
instance()
Only need one instance for static usages
|
boolean |
isAgendaMission() |
boolean |
isEditable() |
boolean |
isEditableAgenda() |
boolean |
isMunitionMission() |
static boolean |
isPartialControlCommand(JAXBElement<?> commandElement) |
static boolean |
isPlottable(int cmdType)
Returns whether the command occupies a place on any of the visual displays
|
boolean |
isTelemetryReplayMission()
TODO: This needs to be a better check.
|
static boolean |
isTerminatingCommand(JAXBElement<?> commandElement) |
boolean |
isValid() |
boolean |
isValidXMLDocument() |
void |
logEvent(Object event)
Adds an event to the event log
|
void |
marshal()
Writes an XML (AVCL) to the default location (probably the file from which it was loaded)
|
void |
marshal(File outFile)
Writes XML (AVCL) to a designated file
|
void |
marshal(OutputStream stream)
Writes XML (AVCL) to a designated output stream
|
void |
marshal(String outFile)
Writes an XML (AVCL) to a designated file
|
void |
marshalNoHeader(Object fragment,
File outFile)
Writes an XML (AVCL) to a designated file, but without the XML header
|
void |
marshalNoHeader(Object fragment,
OutputStream stream)
Writes an XML (AVCL) to a designated output stream, but without the XML header
|
void |
marshalNoHeader(Object fragment,
PrintStream writer)
Writes an XML (AVCL) to a designated output stream, but without the XML header
|
void |
marshalNoHeader(Object fragment,
PrintWriter writer)
Writes an XML (AVCL) to a designated output stream, but without the XML header
|
void |
marshalNoHeader(Object fragment,
String outFile)
Writes an XML (AVCL) to a designated file, but without the XML header
|
String |
marshalToString()
Writes an XML (AVCL) object to a String (not used)
|
void |
removeAgendaAvoidArea(int index)
Remove an agenda avoidance area from the mission
|
Object |
removeAgendaElement(int index)
Removes an Agenda Goal at a specified location in the list.
|
void |
removeAgendaGoal(int index)
Remove an agenda goal from the mission
|
void |
removeAgendaLaunchPosition()
Deletes the agenda-specified launch position
|
void |
removeAgendaRecoveryPosition()
Deletes the agenda-specified
|
Object |
removeCommand(int index)
Removes the command at a specified location in the list.
|
void |
removeMunitionElement(int index) |
static Object |
removeVehicleCapability(Object charEl,
int index) |
void |
replaceCommand(int index,
JAXBElement<?> commandElement)
Replaces a command at the specified location of the command list
|
void |
setAgendaLaunchPosition(AbsoluteHorizontalPositionElementType ahpt) |
void |
setAgendaRecoveryPosition(AbsoluteHorizontalPositionElementType ahpt) |
void |
setGeoOriginLatitude(double newLatitude)
Sets the latitude portion of the GeoOrigin element
|
void |
setGeoOriginLongitude(double newLongitude)
Sets the longitude portion of the GeoOrigin element
|
void |
setGeoOriginRadius(double newRadius)
Sets the radius portion of the GeoOrigin element
|
void |
setMissionFilename(String name)
Sets the name of a newly created, or existing mission file
|
void |
setMissionJaxb(AVCL missionJaxb) |
void |
setMissionOffsetDelta(String northing,
String easting)
Set the mission area offset from a central geographical (Lat/Long) point
|
void |
setMunitionAimPosition(MunitionAimPointElementType obj) |
void |
setMunitionLaunchPosition(MunitionLaunchPointElementType obj) |
static void |
setSampledResultDescription(SampledResultsElementType result,
String description)
Sets the description of a sampled result element
|
static void |
setSampledResultTime(SampledResultsElementType result,
double time)
Sets the timestamp of a sampled result element
|
static void |
setTimeStamp(Object element,
double newValue)
TimeStamp marshaling method
|
void |
setValid(boolean valid) |
void |
setVehicleIDParameter(int id)
Sets the vehicle ID attribute
|
void |
setVehicleNameParameter(String newName)
Sets the vehicle name attribute
|
void |
setVehicleType(int vehicleType) |
void |
setVehicleType(String vehicleType)
Sets the vehicle type attribute
|
public static final int NOVALUE
public static final int XYPOSITION
public static final int RELATIVEXYPOSITION
public static final int LATLONGPOSITION
public static final int DEPTHCONTROL
public static final int ALTITUDECONTROL
public static final int DEFAULTZCONTROL
public static final int MEANSEALEVELCONTROL
ABOVEGROUNDLEVELCONTROL
,
Constant Field Valuespublic static final int ABOVEGROUNDLEVELCONTROL
MEANSEALEVELCONTROL
,
Constant Field Valuespublic static final int ABSOLUTE_TIMING
DURATION_TIMING
,
Constant Field Valuespublic static final int DURATION_TIMING
ABSOLUTE_TIMING
,
Constant Field Valuespublic static final int NUMBER_GOAL_TYPES
public static final int ATTACK
public static final int DECONTAMINATE
public static final int DEMOLISH
public static final int ILLUMINATE
public static final int JAM
public static final int MARK
public static final int MONITORTRANSMISSIONS
public static final int PATROL
public static final int RENDEZVOUS
public static final int REPOSITION
public static final int SAMPLEENVIRONMENT
public static final int SEARCH
public static final String[] GOAL_NAMES
public static final int DEPTH
public static final int ALTITUDE_ABV_BTM
public static final int ALTITUDE_MSL
public static final int ALTITUDE_AGL
public static final int DEPTH_BLK
public static final int DEPTH_ALTITUDE_ABV_BTM_BLK
public static final int ALTITUDE_ABV_BTM_BLK
public static final int ALTITUDE_AGL_BLK
public static final int ALTITUDE_MSL_BLK
public static final int ALTITUDE_AGL_MSL_BLK
public static final int POINT
public static final int CIRCLE
public static final int RECTANGLE
public static final int POLYGON
public static final int LIMITING_LINE
public static final int INGRESS_ROUTE
public static final int EGRESS_ROUTE
public static final int TARGETSCAN
public static final int EDGESCAN
public static final int FORWARDSCAN
public static final int MANUALSCAN
public static final int TRACKSCAN
public static final int GPSSTART
public static final int GPSINPROGRESS
public static final int GPSCOMPLETE
public static final int GPSFAIL
public static final int RELATIVEBEARING
public static final int TRUEBEARING
public static final int MAGNETICBEARING
public static final int ALLPROPELLERS
public static final int STBDPROPELLER
public static final int PORTPROPELLER
public static final int CENTERPROPELLER
public static final int KNOTS
public static final int METERSPERSECOND
public static final int LATERALTHRUSTERS
public static final int BOWLATERALTHRUSTER
public static final int STERNLATERALTHRUSTER
public static final int VERTICALTHRUSTERS
public static final int BOWVERTICALTHRUSTER
public static final int STERNVERTICALTHRUSTER
public static final int ALLPLANES
public static final int BOWPLANES
public static final int STERNPLANES
public static final int ALLTRACKS
public static final int LEFTTRACK
public static final int RIGHTTRACK
public static final int MSL
public static final int AGL
public static final int RIGHT
public static final int STARBOARD
public static final int LEFT
public static final int PORT
public static final String DIRECTTO
public static final String TRACKTO
public static final int HERTZ
public static final int KILOHERTZ
public static final int MEGAHERTZ
public static final int GIGAHERTZ
public static final int NUCLEAR
public static final int BIOLOGICAL
public static final int CHEMICAL
public static final int EXPLOSIVE
public static final int TOXIN
public static final int COMPOSITEWAYPOINT_COMMAND_UUV
public static final int COMPOSITEWAYPOINT_COMMAND_UGV
public static final int COMPOSITEWAYPOINT_COMMAND_USV
public static final int COMPOSITEWAYPOINT_COMMAND_UAV
public static final int RECOVER_COMMAND
public static final int FOLLOWBEACON_COMMAND
public static final int GPSFIX_COMMAND
public static final int HELP_COMMAND
public static final int HOVER_COMMAND
public static final int MAKEALTITUDE_COMMAND
public static final int MAKEALTITUDEAGL_COMMAND
public static final int MAKEALTITUDEMSL_COMMAND
public static final int MAKECLIMBRATE_COMMAND
public static final int MAKEDEPTH_COMMAND
public static final int MAKEHEADING_COMMAND
public static final int MAKEKNOTS_COMMAND
public static final int MAKESPEED_COMMAND
public static final int MAKETURNRATE_COMMAND
public static final int META_COMMAND
public static final int MISSIONSCRIPT_COMMAND
public static final int MISSIONSCRIPTINLINE_COMMAND
public static final int MOVELATERAL_COMMAND
public static final int MOVEROTATE_COMMAND
public static final int POSITION_COMMAND_UUV
public static final int POSITION_COMMAND_UGV
public static final int POSITION_COMMAND_USV
public static final int POSITION_COMMAND_UAV
public static final int QUIT_COMMAND
public static final int REALTIME_COMMAND
public static final int SETTIME_COMMAND
public static final int SENDMESSAGE_COMMAND
public static final int SETAILERON_COMMAND
public static final int SETELEVATOR_COMMAND
public static final int SETPLANES_COMMAND
public static final int SETPOWER_COMMAND
public static final int SETPROPELLER_COMMAND
public static final int SETRUDDER_COMMAND
public static final int SETSONAR_COMMAND
public static final int SETTHRUSTER_COMMAND
public static final int SETTRACKSPEED_COMMAND
public static final int SETSTANDOFF_COMMAND
public static final int TAKESTATION_COMMAND
public static final int THRUSTERS_COMMAND
public static final int SETTIMESTEP_COMMAND
public static final int TRACE_COMMAND
public static final int WAIT_COMMAND
public static final int WAITUNTILTIME_COMMAND
public static final int WAYPOINT_COMMAND_UUV
public static final int WAYPOINT_COMMAND_UGV
public static final int WAYPOINT_COMMAND_USV
public static final int WAYPOINT_COMMAND_UAV
public static final int LOITER_COMMAND_UUV
public static final int LOITER_COMMAND_UGV
public static final int LOITER_COMMAND_USV
public static final int LOITER_COMMAND_UAV
public static final int AGENDA_GOAL
public static final int AGENDA_AVOIDAREAELEMENT
public static final int AGENDA_ROUTEELEMENT
public static final int AGENDA_LAUNCH_POSITION
public static final int AGENDA_RECOVERY_POSITION
public static final int MUNITION_LAUNCH_POSITION
public static final int MUNITION_AIM_POSITION
public static final String[] AVCL_COMMAND_NAMES
public static final int PARALLELTRACK
public static final int EXPANDINGSQUARE
public static final int SECTORPATTERN
public static final int WAYPOINTLIST
public static final int UUV
public static final int UGV
public static final int USV
public static final int UAV
public static final int MUNITION
public static final int AGENDA
public static final Color INITIAL_GOAL
public static final Color CURRENT_GOAL
public static final Color PRIOR_GOAL
public static final Color GOAL_ON_SUCCESS
public static final Color GOAL_ON_FAILURE
protected AvclHeadType head
protected AvclBodyType body
protected MissionPreparationElementType missionPreparation
protected MissionResultsElementType missionResults
protected List<SampledResultsElementType> resultsList
protected EventLogElementType telemetryEventList
protected UuvScriptCommandsType uuvCommandScript
protected UgvScriptCommandsType ugvCommandScript
protected UsvScriptCommandsType usvCommandScript
protected UavScriptCommandsType uavCommandScript
protected AgendaMissionElementType agendaMission
protected AgendaGoalListType agendaGoalList
protected AgendaConstraintListType agendaConstraintList
protected GuidedMunitionMissionElementType munitionMission
protected EventLogElementType eventLog
protected GeoOriginElementType geoOrigin
protected List<JAXBElement<?>> commandElementList
public AvclMission(Object obj)
obj
- either an Integer, String, File or InputStream object used to
determine how to load a given missionpublic AvclMission(int vehicle)
vehicle
- public static AvclMission instance()
public XMLValidationTool getXMLValidationTool()
public JAXBContext getJAXBContext()
JAXBContext
for the current AVCL mission, which is JAXB binding framework for unmarshal, marshal and validate operationsJAXBContext
public ObjectFactory getObjectFactory()
ObjectFactory
public JAXBIntrospector getJAXBIntrospector()
JAXBIntrospector
public List<SampledResultsElementType> getTelemetryList()
public List<?> getEventLog()
public final void setMissionFilename(String name)
name
- the name to setpublic File getMissionFile()
public boolean isAgendaMission()
public boolean isTelemetryReplayMission()
public boolean isValidXMLDocument()
public boolean isMunitionMission()
public boolean isEditable()
public boolean isEditableAgenda()
public boolean checkMetaElements(AVCL result)
result
- the AVCL to parse for meta element informationpublic int getVehicleType()
public void setVehicleType(int vehicleType)
public void marshal()
public void marshal(String outFile)
outFile
- filename and path to which output is to be directedpublic void marshal(File outFile)
outFile
- filename and path to which output is to be directedpublic void marshal(OutputStream stream)
stream
- OutputStream to which output is to be directedpublic String marshalToString()
public void marshalNoHeader(Object fragment, String outFile)
fragment
- AVCL document fragment that is to be marshaledoutFile
- filename and path to which output is to be directedpublic void marshalNoHeader(Object fragment, File outFile)
fragment
- AVCL document fragment that is to be marshaledoutFile
- filename and path to which output is to be directedpublic void marshalNoHeader(Object fragment, OutputStream stream)
fragment
- AVCL document fragment that is to be marshaledstream
- OutputStream to which output is to be directedpublic void marshalNoHeader(Object fragment, PrintStream writer)
fragment
- AVCL document fragment that is to be marshaledwriter
- PrintStream to which output is to be directedpublic void marshalNoHeader(Object fragment, PrintWriter writer)
fragment
- AVCL document fragment that is to be marshaledwriter
- PrintWriter to which output is to be directedpublic JAXBElement<?> getCommandTypeElement(Object cmd)
cmd
- the vehicle-specific command, either in object form or element formpublic ConfigurationElementType getConfiguration()
public UnitsOfMeasureElementType getUnitsOfMeasure()
public String getUnitsOfMeasureAngle(Object uom)
uom
- (does nothing)public String getUnitsOfMeasureDistance(Object uom)
uom
- (does nothing)public String getUnitsOfMeasureTime(Object uom)
uom
- (does nothing)public void addAgendaGoalElement(JAXBElement<?> element)
element
- element to add to the end of the element listpublic void addAgendaGoalElement(int index, JAXBElement<?> element)
index
- position in the Agenda Element list for the new Agenda Elementelement
- element to be added at the specified location of the element listpublic void addCommandElement(JAXBElement<?> commandElement)
commandElement
- command to be added (JAXBElement<?> type to support all possible)public void addCommandElement(int index, JAXBElement<?> commandElement)
index
- position in command list for new command, original and
subsequent commands (if any) are moved to followcommandElement
- command to be added (JAXBElement<?> type to support all possible)public void replaceCommand(int index, JAXBElement<?> commandElement)
index
- position in command list for replacement commandcommandElement
- command to replace an existing command (JAXBElement<?> type to support all possible)public double getLength()
public MissionPreparationElementType getMissionPreparationElement()
public List<JAXBElement<?>> getCommandElementList()
public MunitionAimPointElementType getMunitionAimPosition()
MunitionAimPointElementType
public MunitionLaunchPointElementType getMunitionLaunchPosition()
MunitionLaunchPointElementType
public void setMunitionAimPosition(MunitionAimPointElementType obj)
obj
- public void setMunitionLaunchPosition(MunitionLaunchPointElementType obj)
obj
- public AgendaMissionElementType getAgendaMissionElement()
public GuidedMunitionMissionElementType getMunitionMissionElement()
public AbsoluteHorizontalPositionElementType getAgendaLaunchPosition()
public void setAgendaLaunchPosition(AbsoluteHorizontalPositionElementType ahpt)
ahpt
- public AbsoluteHorizontalPositionElementType getAgendaRecoveryPosition()
public void setAgendaRecoveryPosition(AbsoluteHorizontalPositionElementType ahpt)
ahpt
- public AgendaGoalListType getAgendaGoals()
public List<AgendaGoalElementType> getAgendaGoalList()
public AgendaConstraintListType getAgendaConstraintList()
AgendaConstraintListType
object reference to the constraints element of the strategic-level agenda mission goalspublic List<AreaElementType> getAgendaConstraintListAvoidAreas()
public RouteElementType getAgendaConstraintsIngressRouting()
RouteElementType
public RouteElementType getAgendaConstraintsEgressRouting()
RouteElementType
public int getCommandListSize()
public JAXBElement<?> getCommandElement(int index)
index
- index to the command that is to be retrievedpublic Object removeCommand(int index)
index
- an index of the command that is to be removedpublic Object removeAgendaElement(int index)
index
- an index of the element that is to be removedpublic JAXBElement<?> copyCommandElement(int index)
index
- an index of the command that is to be copiedpublic AgendaGoalElementType getAgendaGoal(int index)
index
- of goal in agendaGoalListAgendaGoalElementType
public AreaElementType getAgendaAvoidArea(int index)
index
- of avoidance area in agendaConstraintListAreaElementType
public void addAgendaAvoidArea(AreaElementType obj)
public void addAgendaAvoidArea(int index, AreaElementType avoidArea)
index
- of new avoidance area to add to agendaConstraintListavoidArea
- new AreaElementType
AvoidArea element to addpublic void addAgendaAvoidAreaElement(int index, JAXBElement<?> element)
index
- position in the Agenda Element list for the new Agenda Elementelement
- element to be added at the specified location of the element listpublic void addAgendaGoal(AgendaGoalElementType aget)
public void addAgendaGoal(int index, AgendaGoalElementType aget)
index
- index of goal of interestaget
- AgendaGoalElementType
public void addAgendaRecoveryPosition(Object obj)
obj
- recovery positionpublic void addAgendaLaunchPosition(Object obj)
obj
- public void removeAgendaLaunchPosition()
public void removeAgendaRecoveryPosition()
public void removeAgendaGoal(int index)
index
- of AgendaGoalElementType
goal to remove from listpublic void removeAgendaAvoidArea(int index)
index
- of AreaElementType
avoidance area to remove from listpublic void removeMunitionElement(int index)
index
- public void addMunitionLaunchPosition(Object obj)
obj
- public void addMunitionAimPosition(Object obj)
obj
- public int commandType(int index)
public String getVehicleNameParameter()
public String getVehicleTypeParameter()
public int getVehicleIDParameter()
public void setVehicleNameParameter(String newName)
newName
- public void setVehicleIDParameter(int id)
id
- public void createHeadElement()
public void createMetaElement(String name, String content)
name
- of the meta elementcontent
- of the meta elementpublic void clearMetaElements()
public List<MetaType> getMetaElementList()
public static String getMetaElementName(JAXBElement<?> meta)
meta
- tag for which the name attribute is being returnedpublic static String getMetaElementContent(JAXBElement<?> meta)
meta
- tag for which the content attribute is being returnedpublic static String getMetaElementDescription(JAXBElement<?> meta)
meta
- tag for which the content attribute is being returnedpublic static DateTimeGroupElementType createCurrentDateTimeGroupElement(String description)
description
- descriptionpublic void setVehicleType(String vehicleType)
vehicleType
- vehicle typepublic void createGeoOrigin(double latitude, double longitude, double radius, String description)
latitude
- in the range of [-90, 90] with negative latitudes being in the southern hemispherelongitude
- in the range of [-180, 180] with negative longitudes being in the western hemisphereradius
- the radius around the origin with which the mission is concerneddescription
- to be assigned to the GeoOrigin elementpublic GeoOriginElementType getGeoOrigin()
public static double getGeoOriginLatitude(GeoOriginElementType go)
go
- the GeoOrigin element whose latitude is to be determinedpublic static double getGeoOriginLongitude(GeoOriginElementType go)
go
- the GeoOrigin element whose longitude is to be determinedpublic static double getGeoOriginRadius(GeoOriginElementType go)
go
- the GeoOrigin element whose radius is to be determinedpublic void setGeoOriginLongitude(double newLongitude)
newLongitude
- the new longitude for the GeoOriginpublic void setMissionOffsetDelta(String northing, String easting)
northing
- the offset along the Z (GeoLocation) axiseasting
- the offset along the X (GeoLocation) axispublic void setGeoOriginLatitude(double newLatitude)
newLatitude
- the new latitude for the GeoOriginpublic void setGeoOriginRadius(double newRadius)
newRadius
- the new radius for the GeoOriginpublic void clearCommandList()
public void clearGeoOrigin()
public void addSampledResult(SampledResultsElementType newResult)
newResult
- sampled result element to be addedpublic static SampledResultsElementType createSampledResultElement(double time, String description)
time
- SampledResult element timestampdescription
- descriptionpublic static double getSampledResultTime(SampledResultsElementType result)
result
- the sampled result element object to be timestampedpublic static String getSampledResultDescription(SampledResultsElementType result)
result
- the sampled result element object to be timestampedpublic static void setSampledResultTime(SampledResultsElementType result, double time)
result
- the sampled result element object to be timestampedtime
- value for the timestamppublic static void setSampledResultDescription(SampledResultsElementType result, String description)
result
- the sampled result element object to be timestampeddescription
- value for the description attributepublic static int commandType(Object command)
command
- AVCL object being identified, either as JAXBElement or as an directly typed objectpublic static boolean isPartialControlCommand(JAXBElement<?> commandElement)
commandElement
- public static boolean isTerminatingCommand(JAXBElement<?> commandElement)
commandElement
- AVCL command to be testedpublic static boolean isPlottable(int cmdType)
cmdType
- an enumeration of a command typepublic static String getDescription(Object element)
element
- the JAXBElement
to parsepublic static void setTimeStamp(Object element, double newValue)
element
- the JAXBElement
node to set a timeStamp tonewValue
- the value of the timeStamp formatted to one decimal placepublic static double getTimeStamp(Object element)
element
- the JAXBElement
element containing a timeStamp valuepublic void generateUgvConfigurationElement()
public void generateUsvConfigurationElement()
public void generateUavConfigurationElement()
public void generateMunitionConfigurationElement()
public void generateAgendaConfigurationElement()
public static Object createVehicleCharacteristicsElement(int vehicleType)
vehicleType
- public void generateEventLog()
public void clearEventLog()
public void logEvent(Object event)
event
- public static int getVehicleNumCapabilities(Object charEl)
charEl
- public static Object getVehicleCapability(Object charEl, int index)
charEl
- index
- public static Object removeVehicleCapability(Object charEl, int index)
charEl
- index
- public static void addVehicleCapability(Object charEl, String capability)
charEl
- capability
- public AVCL getMissionJaxb()
public void setMissionJaxb(AVCL missionJaxb)
missionJaxb
- the missionJaxb to setpublic boolean isValid()
public void setValid(boolean valid)
valid
- missionJaxb validity