org.mars_sim.msp.core.structure.construction
Class ConstructionStageInfo

java.lang.Object
  extended by org.mars_sim.msp.core.structure.construction.ConstructionStageInfo
All Implemented Interfaces:
Serializable

public class ConstructionStageInfo
extends Object
implements Serializable

Information about a construction stage.

See Also:
Serialized Form

Field Summary
static String BUILDING
           
static String FOUNDATION
           
static String FRAME
           
 
Method Summary
 void destroy()
          Prepare for garbage collection.
 int getArchitectConstructionSkill()
          Gets the architect construction skill level.
 double getLength()
          Gets the length of the stage.
 String getName()
          Gets the name of the stage.
 Map<Part,Integer> getParts()
          Gets the parts needed for the stage.
 String getPrerequisiteStage()
          Gets the prerequisite stage name.
 Map<AmountResource,Double> getResources()
          Gets the resources needed for the stage.
 String getType()
          Gets the stage type.
 List<ConstructionVehicleType> getVehicles()
          Gets the vehicles needed for the stage.
 double getWidth()
          Gets the width of the stage.
 double getWorkTime()
          Gets the construction work time.
 boolean isConstructable()
          Check if the stage can be constructed.
 boolean isSalvagable()
          Checks if the stage can be salvaged.
 boolean isUnsetDimensions()
          Checks if the stage dimensions are initially unset.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FOUNDATION

public static final String FOUNDATION
See Also:
Constant Field Values

FRAME

public static final String FRAME
See Also:
Constant Field Values

BUILDING

public static final String BUILDING
See Also:
Constant Field Values
Method Detail

getArchitectConstructionSkill

public int getArchitectConstructionSkill()
Gets the architect construction skill level.

Returns:
skill level.

getName

public String getName()
Gets the name of the stage.

Returns:
name.

getWidth

public double getWidth()
Gets the width of the stage.

Returns:
the stage width (meters).

getLength

public double getLength()
Gets the length of the stage.

Returns:
the stage length (meters).

isUnsetDimensions

public boolean isUnsetDimensions()
Checks if the stage dimensions are initially unset.

Returns:
true if dimensions unset.

isConstructable

public boolean isConstructable()
Check if the stage can be constructed.

Returns:
true if stage can be constructed.

isSalvagable

public boolean isSalvagable()
Checks if the stage can be salvaged.

Returns:
true if stage can be salvaged.

getParts

public Map<Part,Integer> getParts()
Gets the parts needed for the stage.

Returns:
map of parts and their number.

getPrerequisiteStage

public String getPrerequisiteStage()
Gets the prerequisite stage name.

Returns:
name.

getResources

public Map<AmountResource,Double> getResources()
Gets the resources needed for the stage.

Returns:
map of resources and their amounts (kg).

getType

public String getType()
Gets the stage type.

Returns:
type.

getVehicles

public List<ConstructionVehicleType> getVehicles()
Gets the vehicles needed for the stage.

Returns:
vehicle type.

getWorkTime

public double getWorkTime()
Gets the construction work time.

Returns:
time (millisols).

destroy

public void destroy()
Prepare for garbage collection.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013. All Rights Reserved.