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

public final class RuleCondition extends Object implements Serializable
Represents an individual condition within a set of rule conditions. Each condition specifies a specific criterion that must be met, such as an objective being completed, a minimum measure threshold, or a defined attempt status.
See Also:
  • Constructor Details

    • RuleCondition

      public RuleCondition(String referencedObjective, MeasureType measureThreshold, ConditionOperatorType operator, SequencingRuleConditionType condition)
      Constructs a new instance of the RuleCondition class, which represents a condition used in sequencing and evaluation rules.
      Parameters:
      referencedObjective - the identifier of the referenced objective as a String. This specifies the learning objective associated with the rule condition.
      measureThreshold - the threshold value of type MeasureType that is evaluated against the condition. Values must be between -1 and 1.
      operator - the operator of type ConditionOperatorType that defines how the condition is applied, such as "not" to negate the condition or "noOp" for no modification.
      condition - the type of condition represented by SequencingRuleConditionType, which specifies criteria for sequencing rules, such as activity completion status or objective status.
    • RuleCondition

      public RuleCondition()
      Default constructor for the RuleCondition class.

      This constructor initializes a new instance of the RuleCondition class with default values for its attributes. It is primarily used to create an instance without specifying any initial parameters.

  • Method Details

    • getReferencedObjective

      public String getReferencedObjective()
      Retrieves the referenced objective associated with this rule condition.
      Returns:
      the identifier of the referenced objective as a string
    • setReferencedObjective

      public void setReferencedObjective(String referencedObjective)
      Sets the referenced objective associated with this rule condition.
      Parameters:
      referencedObjective - the identifier of the referenced objective to set, represented as a string
    • getMeasureThreshold

      public MeasureType getMeasureThreshold()
      Retrieves the measure threshold associated with this rule condition.
      Returns:
      the measure threshold of type MeasureType
    • setMeasureThreshold

      public void setMeasureThreshold(MeasureType measureThreshold)
      Sets the measure threshold associated with this rule condition.
      Parameters:
      measureThreshold - the measure threshold of type MeasureType to set
    • getOperator

      public ConditionOperatorType getOperator()
      Retrieves the condition operator associated with this rule condition.
      Returns:
      the operator of type ConditionOperatorType, which defines how the condition is evaluated
    • setOperator

      public void setOperator(ConditionOperatorType operator)
      Sets the condition operator for this rule condition.
      Parameters:
      operator - the operator of type ConditionOperatorType to set. This defines how the condition is evaluated, such as "not" to negate the condition or "noOp" to leave it unmodified.
    • getCondition

      public SequencingRuleConditionType getCondition()
      Retrieves the sequencing rule condition associated with this instance.
      Returns:
      the condition of type SequencingRuleConditionType
    • setCondition

      public void setCondition(SequencingRuleConditionType condition)
      Sets the sequencing rule condition associated with this instance.
      Parameters:
      condition - the condition of type SequencingRuleConditionType to set. This defines the criteria that must be met for the rule to apply, such as activity completion status, attempt count, or objective status.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object