Package org.kigalisim.engine.recalc.util
Class DemandAnalysis
java.lang.Object
org.kigalisim.engine.recalc.util.DemandAnalysis
Immutable result of a demand analysis calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionDemandAnalysis(BigDecimal totalDemand, boolean hadUnitBasedSpecs, BigDecimal requiredVirginMaterial, BigDecimal rechargeResidualKg) Create a new DemandAnalysis. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if unit-based specifications should be preserved.Get the recharge residual.Get the required virgin material.Get the total substance demand.
-
Constructor Details
-
DemandAnalysis
public DemandAnalysis(BigDecimal totalDemand, boolean hadUnitBasedSpecs, BigDecimal requiredVirginMaterial, BigDecimal rechargeResidualKg) Create a new DemandAnalysis.- Parameters:
totalDemand- The total substance demand minus implicit servicing in kghadUnitBasedSpecs- True if unit-based specifications should be preservedrequiredVirginMaterial- The required virgin material in kg after recycling effectsrechargeResidualKg- The recharge volume minus implicit recharge in kg
-
-
Method Details
-
getTotalDemand
Get the total substance demand.- Returns:
- The total demand minus implicit servicing in kg
-
getHadUnitBasedSpecs
public boolean getHadUnitBasedSpecs()Check if unit-based specifications should be preserved.- Returns:
- True if unit-based specifications should be preserved, false otherwise
-
getRequiredVirginMaterial
Get the required virgin material.- Returns:
- The required virgin material in kg after accounting for recycling and induction
-
getRechargeResidualKg
Get the recharge residual.- Returns:
- The recharge volume minus implicit recharge in kg
-