Class RollupRule
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.rollup.RollupRule
- All Implemented Interfaces:
Serializable
Represents an individual rollup rule within a set of rollup rules. Each rule defines conditions
and an action that dictate how child activities’ statuses affect the parent activity’s rollup.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the child activity set associated with this instance.intRetrieves the minimum count associated with this instance.Retrieves the minimum percentage associated with this instance.Retrieves the rollup action associated with this instance.Retrieves the rollup conditions associated with this instance.inthashCode()voidsetChildActivitySet(ChildActivitySet childActivitySet) Sets the child activity set for this instance.voidsetMinimumCount(int minimumCount) Sets the minimum count for this instance.voidsetMinimumPercent(PercentType minimumPercent) Sets the minimum percentage for this instance.voidsetRollupAction(RollupAction rollupAction) Sets the rollup action to be performed when the conditions of the rollup rule are met.voidsetRollupConditions(RollupConditions rollupConditions) Sets the rollup conditions for this instance.
-
Constructor Details
-
RollupRule
public RollupRule()Default constructor for the RollupRule class. Initializes a new instance with no specific configuration. This constructor does not perform any operations or set any initial values for the fields within the class.
-
-
Method Details
-
getRollupConditions
Retrieves the rollup conditions associated with this instance. Rollup conditions define criteria that determine if specific rollup logic should be applied based on the status of child activities.- Returns:
- the
RollupConditionsobject representing the criteria for applying the rollup rule.
-
setRollupConditions
Sets the rollup conditions for this instance. Rollup conditions define the specific criteria that determine if rollup logic should be applied based on the status of child activities.- Parameters:
rollupConditions- theRollupConditionsobject containing the criteria for rollup processing
-
getRollupAction
Retrieves the rollup action associated with this instance. The rollup action specifies the operation to perform on the parent activity's status when the conditions defined in the rollup rule are satisfied.- Returns:
- the
RollupActionobject representing the action to be performed if the rollup conditions are met.
-
setRollupAction
Sets the rollup action to be performed when the conditions of the rollup rule are met. The rollup action specifies the operation to apply to the parent activity's status based on the statuses of its child activities and the associated rollup criteria.- Parameters:
rollupAction- theRollupActionobject defining the specific action to be taken when the rollup conditions are satisfied
-
getChildActivitySet
Retrieves the child activity set associated with this instance. The child activity set specifies the subset of child activities to consider while evaluating the rollup rule.- Returns:
- the
ChildActivitySetrepresenting the set of child activities to be used in rollup rule evaluation.
-
setChildActivitySet
Sets the child activity set for this instance. The child activity set specifies the subset of child activities to consider during the evaluation of the rollup rule.- Parameters:
childActivitySet- theChildActivitySetrepresenting the set of child activities to be used in rollup rule evaluation
-
getMinimumCount
public int getMinimumCount()Retrieves the minimum count associated with this instance. The minimum count specifies the threshold value used in evaluating whether the rollup rule criteria are met.- Returns:
- the minimum count as an integer.
-
setMinimumCount
public void setMinimumCount(int minimumCount) Sets the minimum count for this instance. The minimum count represents the threshold value used in evaluating whether the rollup rule criteria are met.- Parameters:
minimumCount- the minimum count as an integer.
-
getMinimumPercent
Retrieves the minimum percentage associated with this instance. The minimum percentage is represented as aPercentType, which holds a value constrained between 0 and 1, inclusive.- Returns:
- the
PercentTypeobject representing the minimum percentage.
-
setMinimumPercent
Sets the minimum percentage for this instance. The minimum percentage is represented as aPercentType, which holds a value constrained between 0 and 1, inclusive. This percentage defines the threshold to be used in rollup rule evaluations.- Parameters:
minimumPercent- thePercentTypeobject representing the minimum percentage value to set.
-
equals
-
hashCode
public int hashCode()
-