CONFIG_DIR, CONFIG_FILE, LOG_FILE, MISSION_DIR, MISSION_FILE
Constructor and Description |
---|
MunitionStrategic(MunitionExecution execution,
VehicleCharacteristics chars,
AvclMission mission)
Creates a new instance of MunitionStrategic
|
MunitionStrategic(VehicleCharacteristics chars,
AvclMission mission,
boolean networkComms)
Creates a new instance of MunitionStrategic that does not have an execution level object on this JVM
|
Modifier and Type | Method and Description |
---|---|
void |
createContaminantRecordEvent(int contaminant,
int pType,
double x,
double y,
int vType,
double v1,
double v2,
String description)
Creates an event log element for a contaminant detection or removal event
|
void |
logContactEvent(int contactID,
String name,
int pType,
double x,
double y,
double heading,
double velocity,
int vType,
double v1,
double v2,
String description)
Creates an event log element for a contact detection or update
|
void |
logEvent(Object event)
Logs an event
¶m event
|
void |
logGoalStatusEvent(Object goal,
String status,
String description)
Creates an event log element for a change in goal execution status
|
void |
logSignalOfInterestEvent(double frequency,
int units,
String content,
String description)
Creates an event log element for a signal of interest detection
|
void |
logVehicleStatusEvent(String system,
String status,
String description)
Creates an event log element for a change in vehicle status
|
static void |
main(String[] args)
Used to run the Strategic level in standalone mode
|
createStrategicLevel, getAvclPlannerFlowController, getAvoidAreaSet, getCurrentGoalStatus, getExecution, getMission, getMissionTime, getTactical, getTacticalComms, getVehicleCharacteristics, incrementMissionStateMachine, marshalLog, parseArguments, processIVMessage, readMessageFromTactical, reportEvent, run, sendCommandScriptElementListToTactical, sendMessageToTactical, setAvclPlannerFlowController, setExecution, setIVCommunicator, setTactical, setWorldModel, startTiming
public MunitionStrategic(MunitionExecution execution, VehicleCharacteristics chars, AvclMission mission)
public MunitionStrategic(VehicleCharacteristics chars, AvclMission mission, boolean networkComms)
chars
- defines what goals the vehicle is capable of completing and how it will do somission
- AVCL mission object (JAXB) containing the declarative mission being runnetworkComms
- set to true if tactical level comms is networked, false if threadedpublic void logEvent(Object event)
public void logGoalStatusEvent(Object goal, String status, String description)
logGoalStatusEvent
in class Strategic
goal
- the goal to which the change in status appliesstatus
- a description of the status changedescription
- value of the goal status element's description fieldpublic void logVehicleStatusEvent(String system, String status, String description)
logVehicleStatusEvent
in class Strategic
system
- the effected vehicle systemstatus
- a description of the new status of the effected systemdescription
- value of the goal status element's description fieldpublic void logSignalOfInterestEvent(double frequency, int units, String content, String description)
logSignalOfInterestEvent
in class Strategic
frequency
- units
- enumeration for the units of the signal frequencycontent
- any loggable signal contentdescription
- value of the signal of interest element's description attributepublic void logContactEvent(int contactID, String name, int pType, double x, double y, double heading, double velocity, int vType, double v1, double v2, String description)
logContactEvent
in class Strategic
contactID
- numerical identifier of the contactname
- string identifier of the contactpType
- enumeration for the type of position (Cartesian or latitude/longitude)x
- X or latitude coordinate of the contacty
- Y or longitude coordinate of the contactheading
- heading (degrees) of the contactvelocity
- speed (meters per second) of the contactvType
- enumeration for the type of vertical component of the contactv1
- a depth or altitudev2
- a depth or altitudedescription
- value of the contact element description attributepublic void createContaminantRecordEvent(int contaminant, int pType, double x, double y, int vType, double v1, double v2, String description)
createContaminantRecordEvent
in class Strategic
contaminant
- enumeration identifying the type of contaminantpType
- enumeration for the type of position (Cartesian or latitude/longitude)x
- X or latitude coordinate of the contacty
- Y or longitude coordinate of the contactvType
- enumeration for the type of vertical component of the contaminantv1
- a depth or altitudev2
- a depth or altitudedescription
- value of the contact element description attributepublic static void main(String[] args)