public class VehicleCharacteristics extends Object
Modifier and Type | Field and Description |
---|---|
double[] |
position
Current (or expected) position of the vehicle when goal execution begins
|
Constructor and Description |
---|
VehicleCharacteristics()
Creates a new instance of VehicleCharacteristics
|
VehicleCharacteristics(int vehicleType)
Creates a new instance of VehicleCharacteristics with default values
|
VehicleCharacteristics(int vehicleType,
GoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Creates a new instance of VehicleCharacteristics with values from a JAXB
configuration element object (used for UGV or USV only)
|
VehicleCharacteristics(int vehicleType,
UavGoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Creates a new instance of VehicleCharacteristics with values from a JAXB
configuration element object (used for UAV only)
|
VehicleCharacteristics(int vehicleType,
UuvGoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Creates a new instance of VehicleCharacteristics with values from a JAXB
configuration element object (used for UUV only)
|
Modifier and Type | Method and Description |
---|---|
double |
getContaminantDetectionRange()
Returns the range at which the vehicle can detect contaminants (chemical, nuclear, etc.)
|
double |
getDefaultGoalVertical()
Returns the depth or altitude at which the vehicle will use to accomplish a goal
|
int |
getDefaultGoalVerticalMode()
Returns the enumeration for the type of vertical (altitude, depth, MSL or AGL altitude) to use during goal accomplishment
|
double |
getGpsInterval()
Returns the distance (meters) that the vehicle can travel submerged between GPS popups (UUV only)
|
double |
getMaxSpeed()
Returns the maximum speed to be utilized by the vehicle
|
double |
getMinWptDist()
Returns the minimum allowable distance (meters) between waypoints
|
double |
getPatrolSpeed()
Returns the speed to be utilized by the vehicle during patrol of a specified operating area
|
double |
getSearchSpeed()
Returns the speed to be utilized by the vehicle during searches
|
double |
getSweepWidth()
Returns the vehicle's search sweep width as defined in NWP 3-22.5 (SAR TACAID)
|
double |
getTargetRange()
Returns the range at which the vehicle can detect and engage (attack) targets
|
double |
getTransitSpeed()
Returns the speed to be utilized by the vehicle during transits between operating areas
|
double |
getTransitVertical()
Returns the depth or altitude at which the vehicle will transit between operating areas
|
int |
getTransitVerticalMode()
Returns the enumeration for the type of vertical (altitude, depth, MSL or AGL altitude) to use during transits between operating areas
|
double |
getTurnRadius()
Returns the turn radius of the vehicle
|
int |
getVehicleType()
Returns an enumeration for the type of vehicle (UUV, UAV, etc.)
|
double |
getX()
Returns the x value of the current position
|
String |
getXSLT()
Returns the location of the XSLT file to be used to generate vehicle-specific commands
|
double |
getY()
Returns the y value of the current position
|
boolean |
goalAchievable(int goalType)
Returns true if the vehicle is capable of achieving the specified goal
|
void |
loadFromFile(int vehicleType,
String fileName)
Loads the vehicle capabilities info from a specified file
|
void |
loadFromXML(int vehicleType,
GoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Loads vehicle characteristics value from an XML element (JAXB object)
|
void |
loadFromXML(int vehicleType,
UavGoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Loads vehicle characteristics value from an XML element (JAXB object)
|
void |
loadFromXML(int vehicleType,
UuvGoalCapabilitiesType goalCapabilities,
FileLocationsType fileLocations)
Loads vehicle characteristics value from an XML element (JAXB object)
|
void |
setPosition(double[] posit)
Sets the current position
|
void |
setPosition(double x,
double y)
Sets the current position
|
void |
setX(double x)
Sets the x value of the current position
|
void |
setXSLT(String fileName)
Sets the location of the XSLT file to be used to generate vehicle-specific commands
|
void |
setY(double y)
Sets the y value of the current position
|
public double[] position
public VehicleCharacteristics()
public VehicleCharacteristics(int vehicleType)
vehicleType
- enumeration indicating the type of vehiclepublic VehicleCharacteristics(int vehicleType, GoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCap
- JAXB object containing all vehicle capabilities valuesfileLocations
- JAXB object containing the location of required filespublic VehicleCharacteristics(int vehicleType, UuvGoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCapabilities
- JAXB object containing all vehicle capabilities valuesfileLocations
- JAXB object containing the location of required filespublic VehicleCharacteristics(int vehicleType, UavGoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCapabilities
- JAXB object containing all vehicle capabilities valuesfileLocations
- JAXB object containing the location of required filespublic final void loadFromXML(int vehicleType, GoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCapabilities
- JAXB object containing all vehicle capabilities valuesfileLoc
- JAXB object containing the location of required filespublic final void loadFromXML(int vehicleType, UuvGoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCapabilities
- JAXB object containing all vehicle capabilities valuesfileLocations
- JAXB object containing the location of required filespublic final void loadFromXML(int vehicleType, UavGoalCapabilitiesType goalCapabilities, FileLocationsType fileLocations)
vehicleType
- enumeration indicating the type of vehiclegoalCapabilities
- JAXB object containing all vehicle capabilities valuesfileLocations
- JAXB object containing the location of required filespublic void loadFromFile(int vehicleType, String fileName)
vehicleType
- enumeration indicating the type of vehiclefileName
- public int getVehicleType()
AvclMission.UAV
, AvclMission.UGV
, AvclMission.USV
, AvclMission.UUV
, AvclMission.AGENDA
, AvclMission#SSGN
, AvclMission.MUNITION
public boolean goalAchievable(int goalType)
goalType
- enumeration indicating the type of goalpublic double getX()
public double getY()
public double getMaxSpeed()
public double getSearchSpeed()
public double getTransitSpeed()
public double getPatrolSpeed()
public double getMinWptDist()
public double getSweepWidth()
public double getTargetRange()
public double getContaminantDetectionRange()
public double getTransitVertical()
public int getTransitVerticalMode()
public double getDefaultGoalVertical()
public int getDefaultGoalVerticalMode()
public double getTurnRadius()
public double getGpsInterval()
public String getXSLT()
public void setXSLT(String fileName)
public void setPosition(double x, double y)
public void setPosition(double[] posit)
public void setX(double x)
public void setY(double y)