org.mars_sim.msp.core.structure.building.function
Class GroundVehicleMaintenance

java.lang.Object
  extended by org.mars_sim.msp.core.structure.building.function.Function
      extended by org.mars_sim.msp.core.structure.building.function.VehicleMaintenance
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mars_sim.msp.core.structure.building.function.VehicleMaintenance
VehicleMaintenance.ParkingLocation
 
Field Summary
static String NAME
           
 
Fields inherited from class org.mars_sim.msp.core.structure.building.function.VehicleMaintenance
parkingLocations, vehicleCapacity
 
Constructor Summary
GroundVehicleMaintenance(Building building)
          Constructor
 
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 org.mars_sim.msp.core.structure.building.function.Function
getBuilding, getMalfunctionScopeStrings, getName, removeFromSettlement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

GroundVehicleMaintenance

public GroundVehicleMaintenance(Building building)
Constructor

Parameters:
building - the building the function is for.
Throws:
BuildingException - if error in construction.
Method Detail

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.