Class DemandAnalysis

java.lang.Object
org.kigalisim.engine.recalc.util.DemandAnalysis

public class DemandAnalysis extends Object
Immutable result of a demand analysis calculation.
  • 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 kg
      hadUnitBasedSpecs - True if unit-based specifications should be preserved
      requiredVirginMaterial - The required virgin material in kg after recycling effects
      rechargeResidualKg - The recharge volume minus implicit recharge in kg
  • Method Details

    • getTotalDemand

      public BigDecimal 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

      public BigDecimal getRequiredVirginMaterial()
      Get the required virgin material.
      Returns:
      The required virgin material in kg after accounting for recycling and induction
    • getRechargeResidualKg

      public BigDecimal getRechargeResidualKg()
      Get the recharge residual.
      Returns:
      The recharge volume minus implicit recharge in kg