Package de.uka.ipd.sdq.pcm.cost.helper
Class CostUtil
- java.lang.Object
-
- de.uka.ipd.sdq.pcm.cost.helper.CostUtil
-
public class CostUtil extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDoubleFromSpecification(String specification)
double
getInitialCost(VariableProcessingResourceCost varCost)
static CostUtil
getInstance()
double
getOperatingCost(VariableProcessingResourceCost varCost)
static double
getTotalCost(double initialCost, double operatingCost, double interest, int numberOfYears)
static double
getTotalCost(Cost cost)
void
resetCache()
-
-
-
Method Detail
-
getInstance
public static CostUtil getInstance()
-
getDoubleFromSpecification
public double getDoubleFromSpecification(String specification)
-
getOperatingCost
public double getOperatingCost(VariableProcessingResourceCost varCost)
-
getInitialCost
public double getInitialCost(VariableProcessingResourceCost varCost)
-
resetCache
public void resetCache()
-
getTotalCost
public static double getTotalCost(Cost cost)
-
getTotalCost
public static double getTotalCost(double initialCost, double operatingCost, double interest, int numberOfYears)
-
-