|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.building.function.Function
public abstract class Function
A settlement building function.
| Constructor Summary | |
|---|---|
Function(String name,
Building building)
Constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
Building |
getBuilding()
Gets the function's building. |
abstract double |
getFullPowerRequired()
Gets the amount of power required when function is at full power. |
String[] |
getMalfunctionScopeStrings()
Gets the function's malfunction scope strings. |
String |
getName()
Gets the function name. |
abstract double |
getPowerDownPowerRequired()
Gets the amount of power required when function is at power down level. |
void |
removeFromSettlement()
Perform any actions needed when removing this building function from the settlement. |
abstract void |
timePassing(double time)
Time passing for the building. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Function(String name,
Building building)
name - the function name.| Method Detail |
|---|
public String getName()
public Building getBuilding()
public String[] getMalfunctionScopeStrings()
public abstract void timePassing(double time)
time - amount of time passing (in millisols)public abstract double getFullPowerRequired()
public abstract double getPowerDownPowerRequired()
public void removeFromSettlement()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||