Class RollupAction
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.rollup.RollupAction
- All Implemented Interfaces:
Serializable
Represents the action to perform if the conditions specified in a rollup rule are met. The rollup
action determines how the statuses of child activities affect the parent activity’s rollup
status, allowing for complex aggregation logic.
Common actions include marking the parent activity as satisfied, not satisfied, completed, or incomplete based on the rollup rule conditions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for theRollupActionclass.RollupAction(RollupActionType action) Initializes a new instance of theRollupActionclass with the specified rollup action type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the current rollup action type associated with this instance.inthashCode()voidsetAction(RollupActionType action) Sets the rollup action to be performed when the rollup rule conditions are met.
-
Constructor Details
-
RollupAction
Initializes a new instance of theRollupActionclass with the specified rollup action type.- Parameters:
action- theRollupActionTypedefining the action to be taken when the conditions of the rollup rule are met. This can include marking the activity as satisfied, not satisfied, completed, or incomplete.
-
RollupAction
public RollupAction()Default constructor for theRollupActionclass.Initializes a new instance of the
RollupActionclass without setting an initial rollup action. This constructor is primarily used for object serialization or other scenarios where the action will be set or modified after instantiation.
-
-
Method Details
-
getAction
Retrieves the current rollup action type associated with this instance.- Returns:
- the
RollupActionTyperepresenting the action to be performed if the rollup rule's conditions are met.
-
setAction
Sets the rollup action to be performed when the rollup rule conditions are met.- Parameters:
action- theRollupActionTypedefining the specific action to be taken, such as marking the activity as satisfied, not satisfied, completed, or incomplete.
-
equals
-
hashCode
public int hashCode()
-