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

java.lang.Object
  extended by org.mars_sim.msp.core.structure.construction.ConstructionUtil

public class ConstructionUtil
extends java.lang.Object

Utility class for construction.


Method Summary
static java.util.List<ConstructionStageInfo> getAllConstructionStageInfoList()
          Gets a list of all construction stage info available.
static java.util.List<ConstructionStageInfo> getBuildingConstructionStageInfoList()
          Gets a list of all building construction stage info.
static java.util.List<ConstructionStageInfo> getBuildingConstructionStageInfoList(int constructionSkill)
          Gets a list of all building construction stage info.
static java.util.List<java.lang.String> getConstructableBuildingNames(ConstructionStageInfo stageInfo)
          Gets a list of names of buildings that are constructable from a given construction stage info.
static java.util.List<ConstructionStageInfo> getConstructionStageInfoList(java.lang.String stageType)
          Gets a list of all construction stage info of a given type.
static java.util.List<ConstructionStageInfo> getConstructionStageInfoList(java.lang.String stageType, int constructionSkill)
          Gets a list of all construction stage info of a given type.
static java.util.List<ConstructionStageInfo> getFoundationConstructionStageInfoList()
          Gets a list of all foundation construction stage info.
static java.util.List<ConstructionStageInfo> getFoundationConstructionStageInfoList(int constructionSkill)
          Gets a list of all foundation construction stage info.
static java.util.List<ConstructionStageInfo> getFrameConstructionStageInfoList()
          Gets a list of all frame construction stage info.
static java.util.List<ConstructionStageInfo> getFrameConstructionStageInfoList(int constructionSkill)
          Gets a list of all frame construction stage info.
static java.util.List<ConstructionStageInfo> getNextPossibleStages(ConstructionStageInfo stageInfo)
          Gets a list of the next possible construction stages from a given construction stage info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getConstructionStageInfoList(java.lang.String stageType)
                                                                                throws java.lang.Exception
Gets a list of all construction stage info of a given type.

Parameters:
stageType - the type of stage.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getConstructionStageInfoList(java.lang.String stageType,
                                                                                       int constructionSkill)
                                                                                throws java.lang.Exception
Gets a list of all construction stage info of a given type.

Parameters:
stageType - the type of stage.
constructionSkill - the architect's construction skill.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getFoundationConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getFoundationConstructionStageInfoList()
                                                                                          throws java.lang.Exception
Gets a list of all foundation construction stage info.

Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getFoundationConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getFoundationConstructionStageInfoList(int constructionSkill)
                                                                                          throws java.lang.Exception
Gets a list of all foundation construction stage info.

Parameters:
constructionSkill - the architect's construction skill.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getFrameConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getFrameConstructionStageInfoList()
                                                                                     throws java.lang.Exception
Gets a list of all frame construction stage info.

Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getFrameConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getFrameConstructionStageInfoList(int constructionSkill)
                                                                                     throws java.lang.Exception
Gets a list of all frame construction stage info.

Parameters:
constructionSkill - the architect's construction skill.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getBuildingConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getBuildingConstructionStageInfoList()
                                                                                        throws java.lang.Exception
Gets a list of all building construction stage info.

Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getBuildingConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getBuildingConstructionStageInfoList(int constructionSkill)
                                                                                        throws java.lang.Exception
Gets a list of all building construction stage info.

Parameters:
constructionSkill - the architect's construction skill.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getAllConstructionStageInfoList

public static final java.util.List<ConstructionStageInfo> getAllConstructionStageInfoList()
                                                                                   throws java.lang.Exception
Gets a list of all construction stage info available.

Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.

getConstructableBuildingNames

public static final java.util.List<java.lang.String> getConstructableBuildingNames(ConstructionStageInfo stageInfo)
                                                                            throws java.lang.Exception
Gets a list of names of buildings that are constructable from a given construction stage info.

Parameters:
stageInfo - the construction stage info.
Returns:
list of building names.
Throws:
java.lang.Exception - if error getting list.

getNextPossibleStages

public static final java.util.List<ConstructionStageInfo> getNextPossibleStages(ConstructionStageInfo stageInfo)
                                                                         throws java.lang.Exception
Gets a list of the next possible construction stages from a given construction stage info.

Parameters:
stageInfo - the construction stage info.
Returns:
list of construction stage info.
Throws:
java.lang.Exception - if error getting list.