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

public final class Scorm2004Objective extends Object implements 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 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 String
      satisfiedByMeasure - a Boolean indicating whether the objective is considered satisfied based on certain measures. True if satisfied, false otherwise, or null if not defined
      minNormalizedMeasure - 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 defined
      mapInfo - 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

      public String getObjectiveID()
      Retrieves the identifier for the objective associated with the instance.
      Returns:
      The objective's unique identifier as a String.
    • setObjectiveID

      public void setObjectiveID(String objectiveID)
      Sets the unique identifier of the objective associated with the instance.
      Parameters:
      objectiveID - the unique identifier for the objective, represented as a String
    • getSatisfiedByMeasure

      public Boolean 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

      public void setSatisfiedByMeasure(Boolean satisfiedByMeasure)
      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

      public Double 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

      public void setMinNormalizedMeasure(Double minNormalizedMeasure)
      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

      public List<Scorm2004ObjectiveMapping> 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

      public void setMapInfo(List<Scorm2004ObjectiveMapping> mapInfo)
      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

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

      public int hashCode()
      Overrides:
      hashCode in class Object