Package org.kigalisim.engine.state
Class PriorEquipmentBases
java.lang.Object
org.kigalisim.engine.state.PriorEquipmentBases
State supporting cumulative retirement / recharge base tracking (prior equip).
State manager tracking population bases and applied amounts across multiple retire/recharge commands within a timestep to enable cumulative calculations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new PriorEquipmentBases instance with default values. -
Method Summary
Modifier and TypeMethodDescriptionGet the applied recharge amount.Get the applied retirement amount.booleanGet whether replacement was used in this step's retire commands.Get the recharge base population.booleanGet whether recycling has been calculated this step.booleanGet whether retire has been calculated this step.Get the retirement base population.voidReset all tracking state at the beginning of a timestep.voidSet the applied recharge amount.voidSet the applied retirement amount.voidsetHasReplacementThisStep(boolean value) Set whether replacement is used in this step's retire commands.voidSet the recharge base population.voidsetRecyclingCalculatedThisStep(boolean calculated) Set whether recycling has been calculated this step.voidsetRetireCalculatedThisStep(boolean calculated) Set whether retire has been calculated this step.voidSet the retirement base population.
-
Constructor Details
-
PriorEquipmentBases
public PriorEquipmentBases()Create a new PriorEquipmentBases instance with default values.
-
-
Method Details
-
getRetirementBasePopulation
Get the retirement base population.- Returns:
- The base population, or empty if not yet captured this step
-
setRetirementBasePopulation
Set the retirement base population.- Parameters:
value- The base population value
-
getAppliedRetirementAmount
Get the applied retirement amount.- Returns:
- The total amount already retired this step
-
setAppliedRetirementAmount
Set the applied retirement amount.- Parameters:
value- The total amount retired this step
-
getHasReplacementThisStep
public boolean getHasReplacementThisStep()Get whether replacement was used in this step's retire commands.- Returns:
- true if with replacement, false if without replacement
-
setHasReplacementThisStep
public void setHasReplacementThisStep(boolean value) Set whether replacement is used in this step's retire commands.- Parameters:
value- true for with replacement, false for without replacement
-
getRetireCalculatedThisStep
public boolean getRetireCalculatedThisStep()Get whether retire has been calculated this step.- Returns:
- true if retire was calculated, false otherwise
-
setRetireCalculatedThisStep
public void setRetireCalculatedThisStep(boolean calculated) Set whether retire has been calculated this step.- Parameters:
calculated- true if retire was calculated, false otherwise
-
getRechargeBasePopulation
Get the recharge base population.- Returns:
- The base population, or empty if not yet captured this step
-
setRechargeBasePopulation
Set the recharge base population.- Parameters:
value- The base population value
-
getAppliedRechargeAmount
Get the applied recharge amount.- Returns:
- The total amount already recharged this step in kg
-
setAppliedRechargeAmount
Set the applied recharge amount.- Parameters:
value- The total amount recharged this step in kg
-
getRecyclingCalculatedThisStep
public boolean getRecyclingCalculatedThisStep()Get whether recycling has been calculated this step.- Returns:
- true if recycling was calculated, false otherwise
-
setRecyclingCalculatedThisStep
public void setRecyclingCalculatedThisStep(boolean calculated) Set whether recycling has been calculated this step.- Parameters:
calculated- true if recycling was calculated, false otherwise
-
resetStateAtTimestep
public void resetStateAtTimestep()Reset all tracking state at the beginning of a timestep.
-