Class PlanItemEvaluationResult


  • public class PlanItemEvaluationResult
    extends Object
    This objects holds the result from a loop through a list of plan items evaluating their entry criteria, repetition rule and activation.
    Author:
    Micha Kiener
    • Constructor Detail

      • PlanItemEvaluationResult

        public PlanItemEvaluationResult()
    • Method Detail

      • increaseActiveChildren

        public void increaseActiveChildren()
      • addChildPlanItemInstance

        public void addChildPlanItemInstance​(PlanItemInstanceEntity planItemInstanceEntity)
      • markCriteriaChanged

        public void markCriteriaChanged()
      • getActiveChildren

        public int getActiveChildren()
      • isCriteriaChanged

        public boolean isCriteriaChanged()
      • hasNewChildPlanItemInstances

        public boolean hasNewChildPlanItemInstances()
      • criteriaChangedOrNewActiveChildren

        public boolean criteriaChangedOrNewActiveChildren()
      • hasCompletedPlanItemInstance

        public boolean hasCompletedPlanItemInstance​(PlanItemInstanceEntity planItemInstance)
        Returns true, if the given plan item instance has at least one instance in completed state (only possible of course for repetition based plan items).
        Parameters:
        planItemInstance - the plan item instance to check for a completed instance of the same plan item
        Returns:
        true, if a completed instance was found, false otherwise