public abstract class Mission extends Object
Date: 13 APR 2005 Time: 1057:29 Author: Terry Norbraten Comments: Modified to enable Forward Error Correction (FEC) encoding of mission data output. If the FEC server is not enabled, the fecTransfer() method will return before calling the FEC Encoder. Date: August 31, 2005 Time: 2021:45 Author: Terry Norbraten, NPS MOVES Comments: Modified to call the XsbcSerializer from the XSBC binary in the lib directory Date: September 23, 2005 Time: 1001 Author: Terry Norbraten, NPS MOVES Comments: Mod. to create .xml telemetry file instance from the constructor for utilization by both the xsbcTransfer() and fecTransfer()methods Date: 17 JUN 2007 Time: 0443Z Author: Terry Norbraten, NPS MOVES Comments: Modified to check for vehicle.runtimeFlags.CREATE_MISSION_TELEMETRY to preclude XSBC and FEC services from executing if no telemetry output is recorded
execution.mission
Modifier and Type | Field and Description |
---|---|
protected AvclMissionDataFeed |
avclDataFeed
vehicle mission commands in XML (AVCL) format or telemetry records
|
protected AvclMissionResults |
avclMissionResults
Telemetry, order, and command results of an vehicle mission
|
protected TextCommandScript |
textCommandScript
vehicle mission commands in text format
|
protected TextMissionResults |
textMissionResults
Telemetry, order, and command result file handler for text output files
|
protected Execution |
vehicleExecution
reference to main vehicle object
|
Constructor and Description |
---|
Mission(Execution vehicle)
Creates a new instance of Mission
|
Modifier and Type | Method and Description |
---|---|
void |
closeDataFiles()
Closes open data files upon mission completion
|
void |
fecTransfer()
Encode serialized XSBC mission files using FEC and transmit to a remote
server via UDP.
|
AvclMission |
getAvclMissionObject()
Returns a reference to the AVCL mission script object
|
Object |
getCurrentCommand()
Returns the current vehicle command
|
double |
getGeoOriginLatitude() |
double |
getGeoOriginLongitude() |
Object |
getNextCommand()
Increments the command and returns the next vehicle command
|
int |
getReturnedCommandIndex() |
String |
getTelemetryDataFile() |
int |
getVehicleID() |
void |
logMissionEvent(Element event)
Adds an element to the event log parent element
|
void |
logMissionEvent(Object event)
Adds an element (JAXB object) to the event log parent element
|
abstract void |
newMission()
Loads a new mission script
|
void |
recordData()
Writes to all XML and text output files as applicable
|
void |
resetLogElement()
resets the event log element for the next timestep
|
protected void |
setUnitsOfMeasure(Object uom)
sets the control routines to utilize the appropriate units of measure (feet/meters, degrees/radians)
|
void |
writeElement(Element el)
Writes an element to the XML mission data file
Used to write both individual commands and the entire
mission element
|
void |
writeElement(Object el)
Writes an element (JAXB object) to the XML mission data file
Used to write both individual commands and the entire
mission element
|
protected void |
writeOcxs() |
protected void |
writeOrders()
Writes an vehicle orders element containing control parameters to the XML
and text mission data files
|
void |
writeSensorData()
Writes sensor data to all XML and text output files as applicable
|
protected void |
writeTelemetry()
Generates and writes a telemetry element to the XML and text mission data file
|
void |
writeWeaponData()
Writes weapon data to all XML and text output files as applicable
|
void |
xsbcTransfer()
Compresses the mission output file using XSBC and transmit it to a
remote server
|
protected Execution vehicleExecution
protected AvclMissionDataFeed avclDataFeed
protected TextCommandScript textCommandScript
protected AvclMissionResults avclMissionResults
protected TextMissionResults textMissionResults
public Mission(Execution vehicle)
vehicle
- reference to vehicle object to which this mission appliespublic abstract void newMission()
protected void setUnitsOfMeasure(Object uom)
uom
- UnitsOfMeasure element from mission file specifying correct unitspublic AvclMission getAvclMissionObject()
public int getVehicleID()
public Object getCurrentCommand()
public Object getNextCommand()
public int getReturnedCommandIndex()
public void recordData()
protected void writeOcxs()
protected void writeTelemetry()
protected void writeOrders()
public void logMissionEvent(Element event)
event
- elementpublic void logMissionEvent(Object event)
event
- elementpublic void resetLogElement()
public void writeElement(Element el)
el
- elementpublic void writeElement(Object el)
el
- elementpublic void writeSensorData()
public void writeWeaponData()
public String getTelemetryDataFile()
public void closeDataFiles()
public void xsbcTransfer()
public void fecTransfer()