|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.Unit
org.mars_sim.msp.simulation.vehicle.Vehicle
org.mars_sim.msp.simulation.vehicle.GroundVehicle
public abstract class GroundVehicle
The GroundVehicle class represents a ground-type vehicle. It is abstract and should be extended to a particular type of ground vehicle.
| Field Summary | |
|---|---|
static java.lang.String |
STUCK
|
| Fields inherited from class org.mars_sim.msp.simulation.vehicle.Vehicle |
|---|
EMERGENCY_BEACON_EVENT, MAINTENANCE, MALFUNCTION, malfunctionManager, MOVING, OPERATOR_EVENT, PARKED, RANGE_ERROR_MARGIN, RESERVED_EVENT, SPEED_EVENT, STATUS_EVENT, TOWED |
| Fields inherited from class org.mars_sim.msp.simulation.Unit |
|---|
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT |
| Method Summary | |
|---|---|
VehicleOperator |
getDriver()
Gets the driver of the ground vehicle. |
double |
getElevation()
Returns the elevation of the vehicle in km. |
java.lang.String |
getStatus()
Returns vehicle's current status |
double |
getTerrainGrade()
Gets the average angle of terrain over next 7.4km distance in direction vehicle is traveling. |
double |
getTerrainHandlingCapability()
Returns the vehicle's terrain capability |
boolean |
isStuck()
Returns true if ground vehicle is stuck |
void |
setDriver(VehicleOperator operator)
Sets the driver of the ground vehicle. |
void |
setElevation(double elevation)
Sets the elevation of the vehicle (in km.) |
void |
setStuck(boolean stuck)
Sets the ground vehicle's stuck value |
void |
setTerrainHandlingCapability(double c)
Sets the vehicle's terrain capability |
| Methods inherited from class org.mars_sim.msp.simulation.Unit |
|---|
addUnitListener, fireUnitUpdate, fireUnitUpdate, getBaseMass, getContainerUnit, getCoordinates, getDescription, getInventory, getMass, getName, getTopContainerUnit, getUnitManager, removeUnitListener, setBaseMass, setContainerUnit, setCoordinates, setDescription, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mars_sim.msp.simulation.malfunction.Malfunctionable |
|---|
getInventory, getName |
| Field Detail |
|---|
public static final java.lang.String STUCK
| Method Detail |
|---|
public java.lang.String getStatus()
getStatus in class Vehiclepublic double getElevation()
public void setElevation(double elevation)
elevation - new elevation for ground vehiclepublic double getTerrainHandlingCapability()
public void setTerrainHandlingCapability(double c)
c - sets the ground vehicle's terrain handling capabilitypublic double getTerrainGrade()
public boolean isStuck()
public void setStuck(boolean stuck)
stuck - true if vehicle is currently stuck, false otherwisepublic VehicleOperator getDriver()
public void setDriver(VehicleOperator operator)
operator - the driver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||