public class AirVehicle extends VehicleObject
potentialVector
Constructor and Description |
---|
AirVehicle(double[] position,
double altitude,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
AirVehicle(double x,
double y,
double altitude,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
AirVehicle(double time,
double standoff,
int VID)
Constructor for a zero-velocity vehicle that will be placed at the origin with zero altitude and velocity
|
AirVehicle(Point position,
double altitude,
double direction,
double speed,
double time,
double standoff,
int VID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getAltitude() |
int |
getVehicleType() |
void |
setAltitude(double newAltitude)
Sets a new vehicle altitude (must be non-negative--negatives will be set to 0.0)
|
String |
toString()
Generates a string representation of the wall object
|
canCompleteGoal, compareTo, getCharacteristic, getVID, hasCharacteristic, isParticipating, setCapabilities, setParticipating, setVID
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 AirVehicle(double x, double y, double altitude, 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 worldaltitude
- meters above mean sea level (must be positive--negatives will be set to 0)direction
- 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 AirVehicle(double[] position, double altitude, 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 worldaltitude
- meters above mean sea level (must be positive--negatives will be set to 0)direction
- 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 AirVehicle(Point position, double altitude, 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 worldaltitude
- meters above mean sea level (must be positive--negatives will be set to 0)direction
- 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 AirVehicle(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 int getVehicleType()
getVehicleType
in class VehicleObject
public void setAltitude(double newAltitude)
newAltitude
- public double getAltitude()
public String toString()
toString
in class VehicleObject