public abstract class AvclMissionResults extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
avclTelemetryFileName
name of output XML file
|
protected boolean |
eventLogged
set to true if an event has been logged in the current timestep
|
protected PrintWriter |
fileOut
writer to output file
|
protected Object |
logElement
JAXB object for maintaining mission log (commands) information
|
protected boolean |
metricDistances |
protected Document |
newResultsDomDocument
XML mission results (telemetry, orders, etc.)
|
protected Element |
ordersElement
Dom element for maintaining control order information
|
protected boolean |
radianAngles |
protected Element |
sensorData
DOM Element for sensorData
|
protected Element |
telemetryElement
DOM element for maintaining telemetry information
|
protected Execution |
vehicle
reference to vehicle object to which this mission applies
|
protected Element |
weaponData
DOM Element for weapons data
|
Modifier | Constructor and Description |
---|---|
protected |
AvclMissionResults(Execution execution,
Mission msnObject)
Creates a new instance of AvclMissionResults
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeDataFile()
Adds the end tag and closes the data output file
|
protected void |
endRecordTag()
Manually inserts the DiscreteResults end tag
|
protected String |
getOutputFilePath() |
protected void |
logMissionEvent(Object event)
Repeats a mission script element in the telemetry file to allow playback
|
protected boolean |
readyToWriteData()
This will be called every time-slice.
|
void |
setMission(AvclMission newMission) |
protected void |
standardUnitsOfMeasureElement() |
protected void |
startRecordTag()
Manually inserts the DiscreteResults start tag
|
void |
startResultsElement()
Closes out mission MissionPreparation element and opens MissionResults element
|
protected void |
writeElement(Element el)
Writes an element to the XML telemetry file
|
protected void |
writeElement(Object el)
Writes an element (JAXB object) to the XML telemetry file
|
protected abstract void |
writeOrders()
Generates an vehicle control orders element and writes it to the XML telemetry file
|
protected abstract void |
writeSensorData()
Writes out sensor data elements as required to the XML telemetry file
|
protected abstract void |
writeTelemetry()
Constructs a telemetry element and writes it to the XML telemetry file
|
protected abstract void |
writeWeaponData()
Writes out weapon data elements as required to the XML telemetry file
|
protected Execution vehicle
protected Document newResultsDomDocument
protected Element telemetryElement
protected Element ordersElement
protected Element weaponData
protected Element sensorData
protected Object logElement
protected PrintWriter fileOut
protected boolean radianAngles
protected boolean metricDistances
protected boolean eventLogged
protected String avclTelemetryFileName
protected void standardUnitsOfMeasureElement()
public void startResultsElement()
protected void closeDataFile()
protected String getOutputFilePath()
protected void startRecordTag()
protected void endRecordTag()
protected void writeElement(Element el)
el
- serializable element to be writtenprotected void writeElement(Object el)
el
- JAXB object to be writtenprotected void logMissionEvent(Object event)
event
- the original mission script to logprotected abstract void writeTelemetry()
protected abstract void writeOrders()
protected abstract void writeSensorData()
protected abstract void writeWeaponData()
protected boolean readyToWriteData()
public void setMission(AvclMission newMission)
newMission
- the mission to set