Class SequencingRule
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.sequencing.SequencingRule
- All Implemented Interfaces:
Serializable
Represents a single sequencing rule within a set of pre-condition, exit-condition, or
post-condition rules. Each rule consists of a set of conditions and an action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the action to be performed if the conditions specified in the sequencing rule are met.Retrieves the rule conditions associated with this sequencing rule.inthashCode()voidsetRuleAction(RuleAction ruleAction) Sets the action to be executed when the conditions specified in the sequencing rule are met.voidsetRuleConditions(RuleConditions ruleConditions) Sets the conditions that define the criteria for the sequencing rule to apply.
-
Constructor Details
-
SequencingRule
public SequencingRule()Default constructor for the SequencingRule class.This constructor initializes a new instance of the SequencingRule without setting any conditions or actions. It is intended for creating a default instance of the class before properties are configured.
-
-
Method Details
-
getRuleConditions
Retrieves the rule conditions associated with this sequencing rule. Rule conditions define the criteria that must be met for the rule to apply.- Returns:
- the
RuleConditionsobject representing the conditions that control the applicability of the rule, ornullif no conditions are set
-
setRuleConditions
Sets the conditions that define the criteria for the sequencing rule to apply. These conditions specify the logic and requirements that must be fulfilled for the associated action to be executed.- Parameters:
ruleConditions- theRuleConditionsobject containing the set of conditions that determine the applicability of the rule. Passingnullwill clear the current conditions.
-
getRuleAction
Retrieves the action to be performed if the conditions specified in the sequencing rule are met. The action determines the sequencing behavior for the associated activity, such as enabling, disabling, hiding, skipping, or preventing forward traversal.- Returns:
- the
RuleActionobject representing the action specified in the rule, ornullif no action is set
-
setRuleAction
Sets the action to be executed when the conditions specified in the sequencing rule are met. This method updates theRuleActionassociated with the rule, determining the behavior that will take place if the rule's conditions are satisfied.- Parameters:
ruleAction- theRuleActionobject representing the action to be performed. This may include actions such as skipping an activity, disabling it, hiding it from choice, or preventing forward traversal. Passingnullwill clear the current action.
-
equals
-
hashCode
public int hashCode()
-