org.mars_sim.msp.simulation.vehicle
Class MockVehicle

java.lang.Object
  extended by org.mars_sim.msp.simulation.Unit
      extended by org.mars_sim.msp.simulation.vehicle.Vehicle
          extended by org.mars_sim.msp.simulation.vehicle.MockVehicle
All Implemented Interfaces:
java.io.Serializable, Malfunctionable

public class MockVehicle
extends Vehicle

See Also:
Serialized Form

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.vehicle.Vehicle
addDistanceLastMaintenance, addTotalDistanceTraveled, addToTrail, clearDistanceLastMaintenance, getAffectedPeople, getBaseSpeed, getDirection, getDistanceLastMaintenance, getEstimatedTravelDistancePerSol, getFuelEfficiency, getMalfunctionManager, getOperator, getRange, getSettlement, getSpeed, getStatus, getTotalDistanceTraveled, getTowingVehicle, getTrail, isEmergencyBeacon, isReserved, isReservedForMaintenance, isReservedForMission, setBaseSpeed, setDirection, setEmergencyBeacon, setOperator, setReservedForMaintenance, setReservedForMission, setSpeed, setTowingVehicle, timePassing
 
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

MockVehicle

public MockVehicle(Settlement settlement)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

isAppropriateOperator

public boolean isAppropriateOperator(VehicleOperator operator)
Description copied from class: Vehicle
Checks if a particular operator is appropriate for a vehicle.

Specified by:
isAppropriateOperator in class Vehicle
Parameters:
operator - the operator to check
Returns:
true if appropriate operator for this vehicle.

getFuelType

public AmountResource getFuelType()
Description copied from class: Vehicle
Gets the resource type that this vehicle uses for fuel.

Specified by:
getFuelType in class Vehicle
Returns:
resource type