Package org.kigalisim.engine.recalc.util
Class ServicingStatus
java.lang.Object
org.kigalisim.engine.recalc.util.ServicingStatus
Immutable description of servicing configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionServicingStatus(boolean servicingEnabled, boolean percentPopulation) Create a new ServicingStatus. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the servicing population is percentage-based.booleanCheck if a non-zero servicing population was specified.
-
Constructor Details
-
ServicingStatus
public ServicingStatus(boolean servicingEnabled, boolean percentPopulation) Create a new ServicingStatus.- Parameters:
servicingEnabled- True if a non-zero servicing population was specifiedpercentPopulation- True if the servicing population is percentage-based
-
-
Method Details
-
isServicingEnabled
public boolean isServicingEnabled()Check if a non-zero servicing population was specified.- Returns:
- True if servicing is present, false otherwise
-
isPercentPopulation
public boolean isPercentPopulation()Check if the servicing population is percentage-based.- Returns:
- True if the servicing uses percentage units, false otherwise
-