public class UnderwaterVehicle extends VehicleObject
potentialVector| Constructor and Description | 
|---|
| UnderwaterVehicle(double[] position,
                 double depth,
                 double direction,
                 double speed,
                 double time,
                 double standoff,
                 int VID)Constructor | 
| UnderwaterVehicle(double x,
                 double y,
                 double depth,
                 double direction,
                 double speed,
                 double time,
                 double standoff,
                 int VID)Constructor | 
| UnderwaterVehicle(double time,
                 double standoff,
                 int VID)Constructor for a zero-velocity vehicle that will be placed at the origin with zero depth and velocity | 
| UnderwaterVehicle(Point position,
                 double depth,
                 double direction,
                 double speed,
                 double time,
                 double standoff,
                 int VID)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getDepth() | 
| int | getVehicleType() | 
| void | setDepth(double newDepth)Sets a new vehicle depth (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, setVIDcopyStateInfo, getDirection, getPostureTime, getPotentialForce, getPotentialForce, getPotentialForce, getPotentialVector, getPotentialVector, getPotentialVector, getSpeed, isLocated, isTooClose, setDirection, setPosit, setPosit, setPosit, setSpeed, setVelocity, updatePositionDR, updatePositionFix, updatePositionFix, updatePositionFixgetDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistanceOfConcern, getPosit, getPotentialForceDirection, getPotentialForceDirection, getPotentialForceDirection, getStandoff, getXPosit, getYPosit, setStandoffpublic UnderwaterVehicle(double x,
                 double y,
                 double depth,
                 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 worlddepth - meters below the surface (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 UnderwaterVehicle(double[] position,
                 double depth,
                 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 worlddepth - meters below the surface (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 UnderwaterVehicle(Point position, double depth, 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 worlddepth - meters below the surface (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 UnderwaterVehicle(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 VehicleObjectpublic void setDepth(double newDepth)
newDepth - public double getDepth()
public String toString()
toString in class VehicleObject