public class RuntimeFlags extends Object
Latest Modification:
Date: 10 MAY 2005 Time: 1015:41 Author: Terry Norbraten, NPS MOVES Comments: Modified to denote Forward Error Correction (FEC) server specific runtime flags Date: 16 JUN 2007 Time: 2153Z Author: Terry Norbraten, NPS MOVES Comments: 1) Added additional flag to denote creation of telemetry output from mission execution, or not if just playing back previous mission telemetry
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeFlags.ExecutionControlMode
How an execution may be controlled in Execution.
|
Modifier and Type | Field and Description |
---|---|
String |
AVCLSCHEMA
schema to be used to decode xsbc mission results (tdn)
|
String |
commsAddress
Multicast address to be used for inter-vehicle communications
|
int |
commsPort
Port to be used for inter-vehicle communications
|
String |
CONTROLCOEFFICIENTSFILE
xml file containing controlCoefficients info
|
boolean |
CREATE_MISSION_TELEMETRY
Create telemetry output
|
RuntimeFlags.ExecutionControlMode |
currentExecutionControlMode |
static boolean |
DISPLAY
true if a console is available for message output
|
String |
DYNAMICSCOEFFICIENTSFILE
xml file containing dynamicsCoefficients info
|
String |
DYNAMICSHOST
host for dynamics (virtual world)
|
int |
DYNAMICSPORT
port number on dynamics host for network connection
|
boolean |
ENABLE_OCSX |
boolean |
ENABLETEXTOUTPUT
set to true if both xml and text output files are to be generated (just xml if false)
|
static boolean |
ENVIRONMENTALUPDATES
make use of environmental data sources if available
|
int |
FEC_K
FEC Parameter K
|
int |
FEC_N
FEC Parameter N
|
int |
FEC_PACKET_SIZE
FEC Parameter packetSize
|
String |
FECHOST
host on which AUV Workbench is listening for fec traffic
|
int |
FECPORT
port number on fec host for network connection
|
boolean |
FECTRANSFER
Set true if mission results are to be transferred over the network to the
AUV Workbench after FEC encoding and in XSBC format.
|
double |
geoOriginLatitude
Latitude of the origin of the Cartesian coordinate system
|
double |
geoOriginLongitude
Longitude of the origin of the Cartesian coordinate system
|
boolean |
geoOriginReset
Flag indicating that the geographic origin has been reset
|
int |
MAXLOOPS
reset mission and start over when mission completed
|
int |
MAXRUNTIME |
static double |
MAXSPEEDUPFACTOR
maximum speed-up factor--facilitates synchronization of different execution instances
|
boolean |
METRIC
true if distance measurements are metric (false for British)
|
static boolean |
MULTIPLELOOPSDEFAULT
reset mission and start again once current mission has completed
|
boolean |
MULTIPLELOOPSMISSION
reset mission and start again once current mission has completed
|
boolean |
NETWORKDYNAMICS
set to true if virtual-world is a local object (false if networked)
|
String |
ORDERSOUTFILE
text orders output file
|
String |
OUTPUTDIRECTORY
output file directory
|
boolean |
PAUSE
true if execution run is paused for this mission, false if execution run has resumed for this mission
|
static boolean |
PLANNING_IN_PROGRESS
s
|
static boolean |
REALTIME
run in real time as opposed to best possible run speed
|
boolean |
REPLAY
true if run is replay of an existing telemetry file
|
String |
REPLAYFILE
telemetry file to be used for playback
|
String |
SCHEMA_FOR_FEC
schema to be used to decode fec/xsbc mission results
|
String |
SCRIPTFILE
default mission script file
|
boolean |
TACTICALCONTROL
TODO Dead code, remove once the enum ExecutionControlMode is working
|
String |
TEXTOUTFILE
text telemetry output file
|
static boolean |
TRACE
enable verbose debug messages to console
|
int |
vehicleID
Unique identifier of this vehicle (used when sending and receiving messages
|
boolean |
VIRTUAL
true if run is in the virtual world, false if in water
|
String |
WORKBENCHHOST
host for workbench communications
|
int |
workbenchID
identification for this vehicle utilized to identify it to the AUV Workbench and virtual world
|
String |
WORLDFILE
filename of virtual world X3D file.
|
boolean |
XMLCOMMANDS
true if xml-based script commands are being used
|
String |
XMLOUTFILE
xml telemetry output file (extension added automatically at run time)
|
String |
XSBCHOST
host on which AUV Workbench is listening for xsbc traffic
|
int |
XSBCPORT
port number on xsbc host for network connection
|
boolean |
XSBCTRANSFER
true if mission results are to be transferred over the network to the AUV Workbench in XSBC format
|
Constructor and Description |
---|
RuntimeFlags(Execution executionVehicle)
Creates a new instance of RuntimeFlags
|
Modifier and Type | Method and Description |
---|---|
double |
getLatitudeFromX(double x)
Method used to compute the Cartesian X coordinate for a specified latitude
Computed as the arc distance between the latitude and the geo origin latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
double |
getLongitudeFromY(double latitude,
double y)
Method used to compute the Cartesian Y coordinate for a specified longitude
Computed as the arc distance between the longitude and the geo origin
longitude at the specified latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
double |
getXFromLatitude(double latitude)
Method used to compute the Cartesian X coordinate for a specified latitude
Computed as the arc distance between the latitude and the geo origin latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
double[] |
getXy() |
double |
getYFromLongitude(double latitude,
double longitude)
Method used to compute the Cartesian Y coordinate for a specified longitude
Computed as the arc distance between the longitude and the geo origin
longitude at the specified latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
void |
setXyFromLatitudeLongitude(double latitude,
double longitude)
From a latitude/longitude coordinate, set a local (x, y) point based on a geographic origin
|
public static boolean TRACE
public static boolean REALTIME
public static boolean PLANNING_IN_PROGRESS
public static boolean ENVIRONMENTALUPDATES
public static double MAXSPEEDUPFACTOR
public static boolean DISPLAY
public static boolean MULTIPLELOOPSDEFAULT
public boolean MULTIPLELOOPSMISSION
public int MAXLOOPS
public int MAXRUNTIME
public boolean XMLCOMMANDS
public boolean ENABLETEXTOUTPUT
public RuntimeFlags.ExecutionControlMode currentExecutionControlMode
public boolean TACTICALCONTROL
public boolean METRIC
public boolean VIRTUAL
public boolean REPLAY
public boolean PAUSE
public int workbenchID
public int vehicleID
public String WORLDFILE
public boolean geoOriginReset
public double geoOriginLatitude
public double geoOriginLongitude
public String OUTPUTDIRECTORY
public String CONTROLCOEFFICIENTSFILE
public String DYNAMICSCOEFFICIENTSFILE
public String REPLAYFILE
public String SCRIPTFILE
public String XMLOUTFILE
public String TEXTOUTFILE
public String ORDERSOUTFILE
public boolean NETWORKDYNAMICS
public String DYNAMICSHOST
public int DYNAMICSPORT
public String WORKBENCHHOST
public boolean XSBCTRANSFER
public String XSBCHOST
public int XSBCPORT
public String AVCLSCHEMA
public String commsAddress
public int commsPort
public boolean FECTRANSFER
public String FECHOST
public int FECPORT
public String SCHEMA_FOR_FEC
public int FEC_K
public int FEC_N
public int FEC_PACKET_SIZE
public boolean ENABLE_OCSX
public boolean CREATE_MISSION_TELEMETRY
public RuntimeFlags(Execution executionVehicle)
executionVehicle
- reference to the main class of the vehiclepublic void setXyFromLatitudeLongitude(double latitude, double longitude)
latitude
- the given latitude coordinatelongitude
- the given longitude coordinatepublic double[] getXy()
public double getXFromLatitude(double latitude)
latitude
- public double getLatitudeFromX(double x)
x
- public double getYFromLongitude(double latitude, double longitude)
latitude
- longitude
- public double getLongitudeFromY(double latitude, double y)
latitude
- y
-