org.mars_sim.msp.core.structure.building.function
Class GroundVehicleMaintenance
java.lang.Object
org.mars_sim.msp.core.structure.building.function.Function
org.mars_sim.msp.core.structure.building.function.VehicleMaintenance
org.mars_sim.msp.core.structure.building.function.GroundVehicleMaintenance
- All Implemented Interfaces:
- Serializable
public class GroundVehicleMaintenance
- extends VehicleMaintenance
- implements Serializable
The GroundVehicleMaintenance class is a building function for a building
capable of maintaining ground vehicles.
- See Also:
- Serialized Form
|
Method Summary |
static double |
getFunctionValue(String buildingName,
boolean newBuilding,
Settlement settlement)
Gets the value of the function for a named building. |
| Methods inherited from class org.mars_sim.msp.core.structure.building.function.VehicleMaintenance |
addParkingLocation, addVehicle, containsVehicle, destroy, getCurrentVehicleNumber, getEmptyParkingLocation, getFullPowerRequired, getPowerDownPowerRequired, getVehicleCapacity, getVehicleParkedLocation, getVehicles, removeVehicle, timePassing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
GroundVehicleMaintenance
public GroundVehicleMaintenance(Building building)
- Constructor
- Parameters:
building - the building the function is for.
- Throws:
BuildingException - if error in construction.
getFunctionValue
public static double getFunctionValue(String buildingName,
boolean newBuilding,
Settlement settlement)
- Gets the value of the function for a named building.
- Parameters:
buildingName - the building name.newBuilding - true if adding a new building.settlement - the settlement.
- Returns:
- value (VP) of building function.
- Throws:
Exception - if error getting function value.
Copyright © 2009-2013. All Rights Reserved.