|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.construction.ConstructionStage
public class ConstructionStage
A construction stage of a construction site.
| Field Summary | |
|---|---|
static String |
ADD_CONSTRUCTION_WORK_EVENT
|
static String |
ADD_SALVAGE_WORK_EVENT
|
| Constructor Summary | |
|---|---|
ConstructionStage(ConstructionStageInfo info,
ConstructionSite site)
Constructor |
|
| Method Summary | |
|---|---|
void |
addWorkTime(double workTime)
Adds work time to the construction stage. |
double |
getCompletedWorkTime()
Gets the completed work time on the stage. |
ConstructionStageInfo |
getInfo()
Get the construction stage information. |
double |
getRequiredWorkTime()
Gets the required work time for the stage. |
boolean |
isComplete()
Checks if the stage is complete. |
boolean |
isSalvaging()
Checks if the stage is salvaging. |
void |
setCompletedWorkTime(double completedWorkTime)
Sets the completed work time on the stage. |
void |
setSalvaging(boolean isSalvaging)
Sets if the stage is salvaging. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ADD_CONSTRUCTION_WORK_EVENT
public static final String ADD_SALVAGE_WORK_EVENT
| Constructor Detail |
|---|
public ConstructionStage(ConstructionStageInfo info,
ConstructionSite site)
info - the stage information.| Method Detail |
|---|
public ConstructionStageInfo getInfo()
public double getCompletedWorkTime()
public void setCompletedWorkTime(double completedWorkTime)
completedWorkTime - work time (in millisols).public double getRequiredWorkTime()
public void addWorkTime(double workTime)
workTime - the work time (in millisols) to add.public boolean isComplete()
public boolean isSalvaging()
public void setSalvaging(boolean isSalvaging)
isSalvaging - true if staging is salvaging.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||