public class VehicleObject extends MovingObject implements Comparable<VehicleObject>
potentialVector
Constructor and Description |
---|
VehicleObject(double[] position,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
VehicleObject(double x,
double y,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
VehicleObject(double time,
double standoff,
int VID)
Constructor for a zero-velocity vehicle that will be placed at the origin with zero velocity
|
VehicleObject(Point position,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCompleteGoal(int goalType)
Queries whether the vehicle is capable of completing a specified goal type
|
int |
compareTo(VehicleObject v2)
Implements the Comparable interface
|
String |
getCharacteristic(int charNum)
Returns a String describing a special capability or characteristic of the vehicle
|
int |
getVehicleType() |
Integer |
getVID() |
boolean |
hasCharacteristic(String chr)
Does the vehicle have a specific characteristic
|
boolean |
isParticipating() |
void |
setCapabilities(AvclMessage msg)
Uses an AVCL Characteristics message to set the vehicle operating limits and capabilities
|
void |
setParticipating(boolean isParticipating)
Sets the vehicle as participating (true) or not (false) in the owning vehicle's group
|
void |
setVID(int newID)
Sets the vehicle as participating (true) or not (false) in the owning vehicle's group
|
String |
toString()
Generates a string representation of the wall object
|
copyStateInfo, getDirection, getPostureTime, getPotentialForce, getPotentialForce, getPotentialForce, getPotentialVector, getPotentialVector, getPotentialVector, getSpeed, isLocated, isTooClose, setDirection, setPosit, setPosit, setPosit, setSpeed, setVelocity, updatePositionDR, updatePositionFix, updatePositionFix, updatePositionFix
getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistanceOfConcern, getPosit, getPotentialForceDirection, getPotentialForceDirection, getPotentialForceDirection, getStandoff, getXPosit, getYPosit, setStandoff
public VehicleObject(double x, double y, double direction, double speed, double time, double standoff, int VID)
x
- north/south Cartesian coordinate of the object's location in the worldy
- east/west Cartesian coordinate of the object's location in the worlddirection
- direction (degrees) that the object is movingspeed
- speed at which the object is moving (m/sec)time
- mission time (secs from mission start) that the object is first entered into the systemstandoff
- required distance (meters) that the vehicle must remain clear from this objectVID
- a unique identifier for this vehicle objectpublic VehicleObject(double[] position, double direction, double speed, double time, double standoff, int VID)
position
- 2-element array with the Cartesian coordinates of the object's location in the worlddirection
- direction (degrees) that the object is movingspeed
- speed at which the object is moving (m/sec)time
- mission time (secs from mission start) that the object is first entered into the systemstandoff
- required distance (meters) that the vehicle must remain clear from this objectVID
- a unique identifier for this vehicle objectpublic VehicleObject(Point position, double direction, double speed, double time, double standoff, int VID)
position
- 2-element array with the Cartesian coordinates of the object's location in the worlddirection
- direction (degrees) that the object is movingspeed
- speed at which the object is moving (m/sec)time
- mission time (secs from mission start) that the object is first entered into the systemstandoff
- required distance (meters) that the vehicle must remain clear from this objectVID
- a unique identifier for this vehicle objectpublic VehicleObject(double time, double standoff, int VID)
time
- mission time (secs from mission start) that the object is first entered into the systemstandoff
- required distance (meters) that the vehicle must remain clear from this objectVID
- a unique identifier for this vehicle objectpublic void setParticipating(boolean isParticipating)
isParticipating
- is in the group (true) or not in the group (false)public boolean isParticipating()
public int getVehicleType()
public void setVID(int newID)
newID
- is in the group (true) or not in the group (false)public Integer getVID()
public void setCapabilities(AvclMessage msg)
msg
- an AVCLMessage object containing a "Characteristics" messagepublic boolean canCompleteGoal(int goalType)
goalType
- identifying the goal typepublic String getCharacteristic(int charNum)
charNum
- index into the list of capabilitiespublic boolean hasCharacteristic(String chr)
chr
- string representing the characteristic being queried forpublic int compareTo(VehicleObject v2)
compareTo
in interface Comparable<VehicleObject>
v2
- public String toString()
toString
in class MovingObject