Class Scorm2004Objective
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.objective.Scorm2004Objective
- All Implemented Interfaces:
Serializable
Represents an individual learning objective within the SCORM IMS Simple Sequencing schema.
Objectives specify criteria such as minimum required performance, satisfaction requirements, and
mappings to global objectives for tracking learner progress.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault no-argument constructor for the Scorm2004Objective class.Scorm2004Objective(String objectiveID, Boolean satisfiedByMeasure, Double minNormalizedMeasure, List<Scorm2004ObjectiveMapping> mapInfo) Constructs a Scorm2004Objective instance with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of SCORM 2004 objective mappings associated with this objective.Retrieves the minimum normalized measure required for achieving the objective.Retrieves the identifier for the objective associated with the instance.Retrieves the satisfaction criteria for the objective, indicating whether the objective is satisfied based on certain measures.inthashCode()voidsetMapInfo(List<Scorm2004ObjectiveMapping> mapInfo) Sets the list of SCORM 2004 objective mappings associated with this objective.voidsetMinNormalizedMeasure(Double minNormalizedMeasure) Sets the minimum normalized measure required to meet the objective's satisfaction criteria.voidsetObjectiveID(String objectiveID) Sets the unique identifier of the objective associated with the instance.voidsetSatisfiedByMeasure(Boolean satisfiedByMeasure) Sets the satisfaction criteria for the objective, which specifies whether the objective is considered satisfied based on the measure provided.
-
Constructor Details
-
Scorm2004Objective
public Scorm2004Objective(String objectiveID, Boolean satisfiedByMeasure, Double minNormalizedMeasure, List<Scorm2004ObjectiveMapping> mapInfo) Constructs a Scorm2004Objective instance with the provided parameters.- Parameters:
objectiveID- the unique identifier of the objective, represented as a StringsatisfiedByMeasure- a Boolean indicating whether the objective is considered satisfied based on certain measures. True if satisfied, false otherwise, or null if not definedminNormalizedMeasure- a Double representing the minimum normalized measure required to meet the objective's satisfaction criteria. This value is typically between 0.0 and 1.0, or null if no threshold is definedmapInfo- a List of Scorm2004ObjectiveMapping objects representing the mappings associated with this objective. An empty list or null indicates no mappings
-
Scorm2004Objective
public Scorm2004Objective()Default no-argument constructor for the Scorm2004Objective class.This constructor initializes a new instance of the Scorm2004Objective class with default values for all fields. It does not perform any specific logic or set any values beyond the defaults.
-
-
Method Details
-
getObjectiveID
Retrieves the identifier for the objective associated with the instance.- Returns:
- The objective's unique identifier as a String.
-
setObjectiveID
Sets the unique identifier of the objective associated with the instance.- Parameters:
objectiveID- the unique identifier for the objective, represented as a String
-
getSatisfiedByMeasure
Retrieves the satisfaction criteria for the objective, indicating whether the objective is satisfied based on certain measures.- Returns:
- A Boolean indicating if the objective is satisfied based on the measure. Returns true if satisfied, false otherwise, or null if not defined.
-
setSatisfiedByMeasure
Sets the satisfaction criteria for the objective, which specifies whether the objective is considered satisfied based on the measure provided.- Parameters:
satisfiedByMeasure- a Boolean indicating if the objective is satisfied by measure. True if it is satisfied, false otherwise, or null if not defined.
-
getMinNormalizedMeasure
Retrieves the minimum normalized measure required for achieving the objective. The normalized measure is a value between 0.0 and 1.0 that represents a threshold for meeting the objective's satisfaction criteria.- Returns:
- A Double representing the minimum normalized measure. Returns null if no threshold is set.
-
setMinNormalizedMeasure
Sets the minimum normalized measure required to meet the objective's satisfaction criteria. The normalized measure is typically a value between 0.0 and 1.0, which represents the threshold for determining whether the objective is considered achieved.- Parameters:
minNormalizedMeasure- a Double representing the minimum normalized measure for the objective. A null value indicates no threshold is set.
-
getMapInfo
Retrieves the list of SCORM 2004 objective mappings associated with this objective.- Returns:
- A List of Scorm2004ObjectiveMapping objects representing the objective-to-mapping records for this instance. Returns an empty list if no mappings are present.
-
setMapInfo
Sets the list of SCORM 2004 objective mappings associated with this objective.- Parameters:
mapInfo- a List of Scorm2004ObjectiveMapping objects representing the objective-to-mapping records for this instance.
-
equals
-
hashCode
public int hashCode()
-