Package org.kigalisim.engine.recalc
Class RetireBackgroundInfo
java.lang.Object
org.kigalisim.engine.recalc.RetireBackgroundInfo
Immutable container for retirement background state information.
-
Constructor Summary
ConstructorsConstructorDescriptionRetireBackgroundInfo(EngineNumber currentPrior, EngineNumber currentEquipment, EngineNumber currentRetired, EngineNumber basePopulation, boolean firstRetire) Create a new RetireBackgroundInfo. -
Method Summary
Modifier and TypeMethodDescriptionGet the base population for retirement calculations.Get the current total equipment value.Get the current prior equipment value.Get the current retired value.booleanCheck if this is the first retirement operation.
-
Constructor Details
-
RetireBackgroundInfo
public RetireBackgroundInfo(EngineNumber currentPrior, EngineNumber currentEquipment, EngineNumber currentRetired, EngineNumber basePopulation, boolean firstRetire) Create a new RetireBackgroundInfo.- Parameters:
currentPrior- Current prior equipment value in unitscurrentEquipment- Current total equipment value in unitscurrentRetired- Current retired value in unitsbasePopulation- Base population for retirement rate calculationsfirstRetire- Whether this is the first retirement operation for this scope
-
-
Method Details
-
getCurrentPrior
Get the current prior equipment value.- Returns:
- Current prior equipment in units
-
getCurrentEquipment
Get the current total equipment value.- Returns:
- Current total equipment in units
-
getCurrentRetired
Get the current retired value.- Returns:
- Current cumulative retired equipment in units
-
getBasePopulation
Get the base population for retirement calculations.- Returns:
- Base population used for converting retirement rates to absolute amounts
-
isFirstRetire
public boolean isFirstRetire()Check if this is the first retirement operation.- Returns:
- true if this is the first retire operation for this scope, false otherwise
-