|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.structure.building.function.Function
org.mars_sim.msp.simulation.structure.building.function.Storage
public class Storage
The storage class is a building function for storing resources and units.
Field Summary | |
---|---|
static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
Storage(Building building)
Constructor |
Method Summary | |
---|---|
double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
java.util.Map |
getResourceStorageCapacity()
Gets a map of the resources this building is capable of storing and their amounts in kg. |
void |
timePassing(double time)
Time passing for the building. |
Methods inherited from class org.mars_sim.msp.simulation.structure.building.function.Function |
---|
getBuilding, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
Constructor Detail |
---|
public Storage(Building building) throws BuildingException
building
- the building the function is for.
BuildingException
- if function cannot be constructed.Method Detail |
---|
public java.util.Map getResourceStorageCapacity()
public void timePassing(double time) throws BuildingException
timePassing
in class Function
time
- amount of time passing (in millisols)
BuildingException
- if error occurs.public double getFullPowerRequired()
getFullPowerRequired
in class Function
public double getPowerDownPowerRequired()
getPowerDownPowerRequired
in class Function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |