java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.sequencing.SequencingRule
All Implemented Interfaces:
Serializable

public final class SequencingRule extends Object implements 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 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

      public RuleConditions 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 RuleConditions object representing the conditions that control the applicability of the rule, or null if no conditions are set
    • setRuleConditions

      public void setRuleConditions(RuleConditions ruleConditions)
      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 - the RuleConditions object containing the set of conditions that determine the applicability of the rule. Passing null will clear the current conditions.
    • getRuleAction

      public RuleAction 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 RuleAction object representing the action specified in the rule, or null if no action is set
    • setRuleAction

      public void setRuleAction(RuleAction ruleAction)
      Sets the action to be executed when the conditions specified in the sequencing rule are met. This method updates the RuleAction associated with the rule, determining the behavior that will take place if the rule's conditions are satisfied.
      Parameters:
      ruleAction - the RuleAction object 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. Passing null will clear the current action.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object