|
||||||||||
| 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
org.mars_sim.msp.simulation.vehicle.LightUtilityVehicle
public class LightUtilityVehicle
A light utility vehicle that can be used for construction, loading and mining.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
|
| Fields inherited from class org.mars_sim.msp.simulation.vehicle.GroundVehicle |
|---|
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 |
| Fields inherited from interface org.mars_sim.msp.simulation.vehicle.Crewable |
|---|
CREW_CAPACITY_EVENT |
| Constructor Summary | |
|---|---|
LightUtilityVehicle(java.lang.String name,
java.lang.String description,
Settlement settlement)
|
|
| Method Summary | |
|---|---|
int |
getAtachmentSlotNumber()
Gets the number of part slots in the vehicle. |
java.util.Collection<Person> |
getCrew()
Gets a collection of the crewmembers. |
int |
getCrewCapacity()
Gets the number of crewmembers the vehicle can carry. |
int |
getCrewNum()
Gets the current number of crewmembers. |
AmountResource |
getFuelType()
Gets the resource type that this vehicle uses for fuel. |
java.util.Collection<Part> |
getPossibleAttachmentParts()
Gets a collection of parts that can be attached to this vehicle. |
boolean |
isAppropriateOperator(VehicleOperator operator)
Checks if a particular operator is appropriate for a vehicle. |
boolean |
isCrewmember(Person person)
Checks if person is a crewmember. |
void |
timePassing(double time)
Time passing for vehicle. |
| Methods inherited from class org.mars_sim.msp.simulation.vehicle.GroundVehicle |
|---|
getDriver, getElevation, getStatus, getTerrainGrade, getTerrainHandlingCapability, isStuck, setDriver, setElevation, setStuck, setTerrainHandlingCapability |
| 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 NAME
| Constructor Detail |
|---|
public LightUtilityVehicle(java.lang.String name,
java.lang.String description,
Settlement settlement)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public AmountResource getFuelType()
Vehicle
getFuelType in class Vehiclepublic boolean isAppropriateOperator(VehicleOperator operator)
Vehicle
isAppropriateOperator in class Vehicleoperator - the operator to check
public java.util.Collection<Person> getCrew()
getCrew in interface Crewablepublic int getCrewCapacity()
getCrewCapacity in interface Crewablepublic int getCrewNum()
getCrewNum in interface Crewablepublic boolean isCrewmember(Person person)
isCrewmember in interface Crewableperson - the person to check
public java.util.Collection<Part> getPossibleAttachmentParts()
public int getAtachmentSlotNumber()
public void timePassing(double time)
throws java.lang.Exception
Vehicle
timePassing in class Vehicletime - the amount of time passing (millisols)
java.lang.Exception - if error during time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||