public class RuntimeFlags extends Object
     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.ExecutionControlModeHow an execution may be controlled in Execution. | 
| Modifier and Type | Field and Description | 
|---|---|
| String | AVCLSCHEMAschema to be used to decode xsbc mission results (tdn) | 
| String | commsAddressMulticast address to be used for inter-vehicle communications | 
| int | commsPortPort to be used for inter-vehicle communications | 
| String | CONTROLCOEFFICIENTSFILExml file containing controlCoefficients info | 
| boolean | CREATE_MISSION_TELEMETRYCreate telemetry output | 
| RuntimeFlags.ExecutionControlMode | currentExecutionControlMode | 
| static boolean | DISPLAYtrue if a console is available for message output | 
| String | DYNAMICSCOEFFICIENTSFILExml file containing dynamicsCoefficients info | 
| String | DYNAMICSHOSThost for dynamics (virtual world) | 
| int | DYNAMICSPORTport number on dynamics host for network connection | 
| boolean | ENABLE_OCSX | 
| boolean | ENABLETEXTOUTPUTset to true if both xml and text output files are to be generated (just xml if false) | 
| static boolean | ENVIRONMENTALUPDATESmake use of environmental data sources if available | 
| int | FEC_KFEC Parameter K | 
| int | FEC_NFEC Parameter N | 
| int | FEC_PACKET_SIZEFEC Parameter packetSize | 
| String | FECHOSThost on which AUV Workbench is listening for fec traffic | 
| int | FECPORTport number on fec host for network connection | 
| boolean | FECTRANSFERSet true if mission results are to be transferred over the network to the
 AUV Workbench after FEC encoding and in XSBC format. | 
| double | geoOriginLatitudeLatitude of the origin of the Cartesian coordinate system | 
| double | geoOriginLongitudeLongitude of the origin of the Cartesian coordinate system | 
| boolean | geoOriginResetFlag indicating that the geographic origin has been reset | 
| int | MAXLOOPSreset mission and start over when mission completed | 
| int | MAXRUNTIME | 
| static double | MAXSPEEDUPFACTORmaximum speed-up factor--facilitates synchronization of different execution instances | 
| boolean | METRICtrue if distance measurements are metric (false for British) | 
| static boolean | MULTIPLELOOPSDEFAULTreset mission and start again once current mission has completed | 
| boolean | MULTIPLELOOPSMISSIONreset mission and start again once current mission has completed | 
| boolean | NETWORKDYNAMICSset to true if virtual-world is a local object (false if networked) | 
| String | ORDERSOUTFILEtext orders output file | 
| String | OUTPUTDIRECTORYoutput file directory | 
| boolean | PAUSEtrue if execution run is paused for this mission, false if execution run has resumed for this mission | 
| static boolean | PLANNING_IN_PROGRESSs | 
| static boolean | REALTIMErun in real time as opposed to best possible run speed | 
| boolean | REPLAYtrue if run is replay of an existing telemetry file | 
| String | REPLAYFILEtelemetry file to be used for playback | 
| String | SCHEMA_FOR_FECschema to be used to decode fec/xsbc mission results | 
| String | SCRIPTFILEdefault mission script file | 
| boolean | TACTICALCONTROLTODO Dead code, remove once the enum ExecutionControlMode is working | 
| String | TEXTOUTFILEtext telemetry output file | 
| static boolean | TRACEenable verbose debug messages to console | 
| int | vehicleIDUnique identifier of this vehicle (used when sending and receiving messages | 
| boolean | VIRTUALtrue if run is in the virtual world, false if in water | 
| String | WORKBENCHHOSThost for workbench communications | 
| int | workbenchIDidentification for this vehicle utilized to identify it to the AUV Workbench and virtual world | 
| String | WORLDFILEfilename of virtual world X3D file. | 
| boolean | XMLCOMMANDStrue if xml-based script commands are being used | 
| String | XMLOUTFILExml telemetry output file (extension added automatically at run time) | 
| String | XSBCHOSThost on which AUV Workbench is listening for xsbc traffic | 
| int | XSBCPORTport number on xsbc host for network connection | 
| boolean | XSBCTRANSFERtrue 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 -