|
||||||||||
| 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.ConstructionValues
public class ConstructionValues
Provides value information for construction.
| Method Summary | |
|---|---|
void |
clearCache()
Clears the value caches. |
double |
getAllConstructionSitesProfit(int constructionSkill)
Gets the overall profit of all existing construction sites at a settlement that can be worked on with a given construction skill. |
java.util.Map<ConstructionStageInfo,java.lang.Double> |
getAllConstructionStageValues()
Gets a map of all construction stage infos and their values. |
double |
getConstructionSiteProfit(ConstructionSite site)
Gets the profit of an existing construction site at a settlement. |
double |
getConstructionSiteProfit(ConstructionSite site,
int constructionSkill)
Gets the profit of an existing construction site at a settlement. |
java.util.Map<ConstructionStageInfo,java.lang.Double> |
getConstructionStageProfit(java.lang.String stageType,
int constructionSkill,
boolean checkMaterials)
Gets a map of construction stage infos and their profits for a given stage type. |
double |
getNewConstructionSiteProfit(int constructionSkill)
Gets the profit of creating a new construction site at a settlement. |
java.util.Map<ConstructionStageInfo,java.lang.Double> |
getNewConstructionStageProfits(ConstructionSite site,
int constructionSkill)
Gets a map of construction stage infos and their profits for a particular construction site. |
double |
getSettlementConstructionProfit()
Gets the overall profit for construction at the settlement. |
double |
getSettlementConstructionProfit(int constructionSkill)
Gets the overall profit for construction at the settlement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public double getSettlementConstructionProfit()
throws java.lang.Exception
java.lang.Exception - if error determining profit.
public double getSettlementConstructionProfit(int constructionSkill)
throws java.lang.Exception
constructionSkill - the architect's construction skill.
java.lang.Exception - if error determining profit.
public double getAllConstructionSitesProfit(int constructionSkill)
throws java.lang.Exception
constructionSkill - the architect's construction skill.
java.lang.Exception - if error determining profit.
public double getConstructionSiteProfit(ConstructionSite site)
throws java.lang.Exception
site - the construction site.
java.lang.Exception - if error determining profit.
public double getConstructionSiteProfit(ConstructionSite site,
int constructionSkill)
throws java.lang.Exception
site - the construction site.constructionSkill - the architect's construction skill.
java.lang.Exception - if error determining profit.
public double getNewConstructionSiteProfit(int constructionSkill)
throws java.lang.Exception
constructionSkill - the architect's construction skill.
java.lang.Exception - if error determining profit.
public java.util.Map<ConstructionStageInfo,java.lang.Double> getNewConstructionStageProfits(ConstructionSite site,
int constructionSkill)
throws java.lang.Exception
site - the construction site.constructionSkill - the architect's construction skill.
java.lang.Exception - if error determining profit.
public java.util.Map<ConstructionStageInfo,java.lang.Double> getConstructionStageProfit(java.lang.String stageType,
int constructionSkill,
boolean checkMaterials)
throws java.lang.Exception
stageType - the construction stage type.constructionSkill - the architect's construction skill.checkMaterials - should check if settlement has enough construction materials?
java.lang.Exception - if error determining profit.
public java.util.Map<ConstructionStageInfo,java.lang.Double> getAllConstructionStageValues()
throws java.lang.Exception
java.lang.Exception - if error determining value.public void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||