|
||||||||||
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.MockVehicle
public class MockVehicle
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
MockVehicle(Settlement settlement)
|
Method Summary | |
---|---|
AmountResource |
getFuelType()
Gets the resource type that this vehicle uses for fuel. |
boolean |
isAppropriateOperator(VehicleOperator operator)
Checks if a particular operator is appropriate for a vehicle. |
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 |
Constructor Detail |
---|
public MockVehicle(Settlement settlement) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean isAppropriateOperator(VehicleOperator operator)
Vehicle
isAppropriateOperator
in class Vehicle
operator
- the operator to check
public AmountResource getFuelType()
Vehicle
getFuelType
in class Vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |