Class RuleCondition
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.sequencing.RuleCondition
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDefault constructor for the RuleCondition class.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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the sequencing rule condition associated with this instance.Retrieves the measure threshold associated with this rule condition.Retrieves the condition operator associated with this rule condition.Retrieves the referenced objective associated with this rule condition.inthashCode()voidsetCondition(SequencingRuleConditionType condition) Sets the sequencing rule condition associated with this instance.voidsetMeasureThreshold(MeasureType measureThreshold) Sets the measure threshold associated with this rule condition.voidsetOperator(ConditionOperatorType operator) Sets the condition operator for this rule condition.voidsetReferencedObjective(String referencedObjective) Sets the referenced objective associated with this rule condition.
-
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 aString. This specifies the learning objective associated with the rule condition.measureThreshold- the threshold value of typeMeasureTypethat is evaluated against the condition. Values must be between -1 and 1.operator- the operator of typeConditionOperatorTypethat defines how the condition is applied, such as "not" to negate the condition or "noOp" for no modification.condition- the type of condition represented bySequencingRuleConditionType, 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
Retrieves the referenced objective associated with this rule condition.- Returns:
- the identifier of the referenced objective as a string
-
setReferencedObjective
Sets the referenced objective associated with this rule condition.- Parameters:
referencedObjective- the identifier of the referenced objective to set, represented as a string
-
getMeasureThreshold
Retrieves the measure threshold associated with this rule condition.- Returns:
- the measure threshold of type MeasureType
-
setMeasureThreshold
Sets the measure threshold associated with this rule condition.- Parameters:
measureThreshold- the measure threshold of type MeasureType to set
-
getOperator
Retrieves the condition operator associated with this rule condition.- Returns:
- the operator of type ConditionOperatorType, which defines how the condition is evaluated
-
setOperator
Sets the condition operator for this rule condition.- Parameters:
operator- the operator of typeConditionOperatorTypeto set. This defines how the condition is evaluated, such as "not" to negate the condition or "noOp" to leave it unmodified.
-
getCondition
Retrieves the sequencing rule condition associated with this instance.- Returns:
- the condition of type SequencingRuleConditionType
-
setCondition
Sets the sequencing rule condition associated with this instance.- Parameters:
condition- the condition of typeSequencingRuleConditionTypeto 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
-
hashCode
public int hashCode()
-