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 Object

Utility class for construction.


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

Method Detail

getConstructionStageInfo

public static ConstructionStageInfo getConstructionStageInfo(String stageName)
Gets a construction stage info matching a given name.

Parameters:
stageName - the stage info name.
Returns:
construction stage info or null if none found.
Throws:
Exception - if error finding construction stage info.

getConstructionStageInfoList

public static List<ConstructionStageInfo> getConstructionStageInfoList(String stageType)
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:
Exception - if error getting list.

getConstructionStageInfoList

public static List<ConstructionStageInfo> getConstructionStageInfoList(String stageType,
                                                                       int constructionSkill)
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:
Exception - if error getting list.

getFoundationConstructionStageInfoList

public static List<ConstructionStageInfo> getFoundationConstructionStageInfoList()
Gets a list of all foundation construction stage info.

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

getFoundationConstructionStageInfoList

public static List<ConstructionStageInfo> getFoundationConstructionStageInfoList(int constructionSkill)
Gets a list of all foundation construction stage info.

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

getFrameConstructionStageInfoList

public static List<ConstructionStageInfo> getFrameConstructionStageInfoList()
Gets a list of all frame construction stage info.

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

getFrameConstructionStageInfoList

public static List<ConstructionStageInfo> getFrameConstructionStageInfoList(int constructionSkill)
Gets a list of all frame construction stage info.

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

getBuildingConstructionStageInfoList

public static List<ConstructionStageInfo> getBuildingConstructionStageInfoList()
Gets a list of all building construction stage info.

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

getBuildingConstructionStageInfoList

public static List<ConstructionStageInfo> getBuildingConstructionStageInfoList(int constructionSkill)
Gets a list of all building construction stage info.

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

getAllConstructionStageInfoList

public static List<ConstructionStageInfo> getAllConstructionStageInfoList()
Gets a list of all construction stage info available.

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

getConstructableBuildingNames

public static List<String> getConstructableBuildingNames(ConstructionStageInfo stageInfo)
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:
Exception - if error getting list.

getNextPossibleStages

public static List<ConstructionStageInfo> getNextPossibleStages(ConstructionStageInfo stageInfo)
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:
Exception - if error getting list.

getPrerequisiteStage

public static ConstructionStageInfo getPrerequisiteStage(ConstructionStageInfo stageInfo)
Gets the prerequisite construction stage info for a given stage info.

Parameters:
stageInfo - the construction stage info.
Returns:
the prerequisite stage info or null if none.
Throws:
Exception - if error finding prerequisite stage info.


Copyright © 2009-2013. All Rights Reserved.