Class AssignableUnit

java.lang.Object
dev.jcputney.elearning.parser.input.aicc.AssignableUnit
All Implemented Interfaces:
Serializable

public final class AssignableUnit extends Object implements Serializable
Represents an Assignable Unit (AU) in the context of AICC (Aviation Industry CBT Committee).

The Assignable Unit is a component of a course that can be assigned to learners.


 <complexType name="assignableUnit">
   <complexContent>
     <extension base="assignableUnitVocab">
       <attributeGroup ref="ag:assignableUnit"/>
     </extension>
   </complexContent>
 </complexType>
 
See Also:
  • Constructor Details

    • AssignableUnit

      public AssignableUnit()
  • Method Details

    • getSystemId

      public String getSystemId()
      Retrieves the system identifier associated with the assignable unit.
      Returns:
      the system identifier as a String
    • setSystemId

      public void setSystemId(String systemId)
      Sets the system identifier for the assignable unit.
      Parameters:
      systemId - the system identifier to set as a String
    • getCommandLine

      public String getCommandLine()
      Retrieves the command line associated with this assignable unit.
      Returns:
      the command line as a String
    • setCommandLine

      public void setCommandLine(String commandLine)
      Sets the command line associated with this assignable unit.
      Parameters:
      commandLine - the command line to set as a String
    • getFileName

      public String getFileName()
      Retrieves the file name associated with this assignable unit.
      Returns:
      the file name as a String
    • setFileName

      public void setFileName(String fileName)
      Sets the file name for the assignable unit.
      Parameters:
      fileName - the file name to set as a String
    • getCoreVendor

      public String getCoreVendor()
      Retrieves the core vendor associated with this assignable unit.
      Returns:
      the core vendor as a String
    • setCoreVendor

      public void setCoreVendor(String coreVendor)
      Sets the core vendor associated with this assignable unit.
      Parameters:
      coreVendor - the core vendor to set as a String
    • getType

      public String getType()
      Retrieves the type associated with this assignable unit.
      Returns:
      the type as a String
    • setType

      public void setType(String type)
      Sets the type associated with this assignable unit.
      Parameters:
      type - the type to set as a String
    • getMaxScore

      public String getMaxScore()
      Retrieves the maximum score associated with this assignable unit.
      Returns:
      the maximum score as a String
    • setMaxScore

      public void setMaxScore(String maxScore)
      Sets the maximum score for the assignable unit.
      Parameters:
      maxScore - the maximum score to set as a String
    • getMasteryScore

      public String getMasteryScore()
      Retrieves the mastery score associated with this assignable unit.
      Returns:
      the mastery score as a String
    • setMasteryScore

      public void setMasteryScore(String masteryScore)
      Sets the mastery score for the assignable unit.
      Parameters:
      masteryScore - the mastery score to set as a String
    • getMaxTimeAllowed

      public String getMaxTimeAllowed()
      Retrieves the maximum time allowed for this assignable unit.
      Returns:
      the maximum time allowed as a String
    • setMaxTimeAllowed

      public void setMaxTimeAllowed(String maxTimeAllowed)
      Sets the maximum time allowed for this assignable unit.
      Parameters:
      maxTimeAllowed - the maximum time allowed to set as a String
    • getTimeLimitAction

      public String getTimeLimitAction()
      Retrieves the time limit action associated with this assignable unit.
      Returns:
      the time limit action as a String
    • setTimeLimitAction

      public void setTimeLimitAction(String timeLimitAction)
      Sets the time limit action for the assignable unit.
      Parameters:
      timeLimitAction - the time limit action to set as a String
    • getSystemVendor

      public String getSystemVendor()
      Retrieves the system vendor associated with this assignable unit.
      Returns:
      the system vendor as a String
    • setSystemVendor

      public void setSystemVendor(String systemVendor)
      Sets the system vendor for the assignable unit.
      Parameters:
      systemVendor - the system vendor to set as a String
    • getWebLaunch

      public String getWebLaunch()
      Retrieves the web launch configuration associated with the assignable unit.
      Returns:
      the web launch configuration as a String
    • setWebLaunch

      public void setWebLaunch(String webLaunch)
      Sets the web launch configuration associated with the assignable unit.
      Parameters:
      webLaunch - the web launch configuration to set as a String
    • getAuPassword

      public String getAuPassword()
      Retrieves the AU password associated with this assignable unit.
      Returns:
      the AU password as a String
    • setAuPassword

      public void setAuPassword(String auPassword)
      Sets the AU (Assignable Unit) password for this object.
      Parameters:
      auPassword - the AU password to set as a String
    • getDescriptor

      public Descriptor getDescriptor()
      Retrieves the descriptor associated with the assignable unit.
      Returns:
      the descriptor as a Descriptor object
    • setDescriptor

      public void setDescriptor(Descriptor descriptor)
      Sets the descriptor associated with this assignable unit.
      Parameters:
      descriptor - the descriptor to set as a Descriptor object
    • getPrerequisitesExpression

      public String getPrerequisitesExpression()
      Retrieves the prerequisites expression associated with this assignable unit.
      Returns:
      the prerequisites expression as a String
    • setPrerequisitesExpression

      public void setPrerequisitesExpression(String prerequisitesExpression)
      Sets the prerequisites expression for the assignable unit.
      Parameters:
      prerequisitesExpression - the prerequisites expression to set as a String
    • getPrerequisiteModel

      public AiccPrerequisiteExpression getPrerequisiteModel()
      Retrieves the prerequisite model associated with this assignable unit.
      Returns:
      the prerequisite model as an AiccPrerequisiteExpression
    • setPrerequisiteModel

      public void setPrerequisiteModel(AiccPrerequisiteExpression prerequisiteModel)
      Sets the prerequisite model for the current object with the provided AiccPrerequisiteExpression instance.
      Parameters:
      prerequisiteModel - an instance of AiccPrerequisiteExpression that defines the prerequisite model to be set.
    • getCompletionCriteria

      public AiccCompletionCriteria getCompletionCriteria()
      Retrieves the AICC completion criteria for the current context or object.
      Returns:
      the completion criteria of type AiccCompletionCriteria associated with this instance
    • setCompletionCriteria

      public void setCompletionCriteria(AiccCompletionCriteria completionCriteria)
      Sets the completion criteria for the current object.
      Parameters:
      completionCriteria - the AICC completion criteria to be set
    • getMasteryScoreNormalized

      public Double getMasteryScoreNormalized()
      Retrieves the normalized mastery score.
      Returns:
      the normalized mastery score as a Double, or null if it is not set.
    • setMasteryScoreNormalized

      public void setMasteryScoreNormalized(Double masteryScoreNormalized)
      Sets the normalized mastery score for a learning object or module. The normalized score is typically a value between 0 and 1 that indicates the mastery threshold.
      Parameters:
      masteryScoreNormalized - the normalized mastery score to set. Should be a Double representing a value between 0.0 and 1.0.
    • getMaxTimeAllowedNormalized

      public Duration getMaxTimeAllowedNormalized()
      Retrieves the maximum time allowed normalized as a Duration object.
      Returns:
      the maximum normalized time allowed
    • setMaxTimeAllowedNormalized

      public void setMaxTimeAllowedNormalized(Duration maxTimeAllowedNormalized)
      Sets the maximum allowed time in a normalized format.
      Parameters:
      maxTimeAllowedNormalized - the maximum duration allowed, represented as a Duration
    • getTimeLimitActionNormalized

      public List<String> getTimeLimitActionNormalized()
      Retrieves the list of time limit actions in a normalized format.
      Returns:
      a list of strings representing the normalized time limit actions
    • setTimeLimitActionNormalized

      public void setTimeLimitActionNormalized(List<String> timeLimitActionNormalized)
      Sets the normalized time limit actions for the assignable unit. If the input list is null, it is replaced with an immutable empty list. Otherwise, the provided list is copied to ensure immutability.
      Parameters:
      timeLimitActionNormalized - a list of normalized time limit actions; if null, it defaults to an empty list
    • getPrerequisitesMandatoryOverride

      public Boolean getPrerequisitesMandatoryOverride()
      Retrieves the value indicating whether the prerequisites mandatory override is enabled.
      Returns:
      a Boolean indicating if the prerequisites mandatory override is set. Returns true if enabled, false if disabled, or null if not set.
    • setPrerequisitesMandatoryOverride

      public void setPrerequisitesMandatoryOverride(Boolean prerequisitesMandatoryOverride)
      Sets the prerequisites mandatory override flag.
      Parameters:
      prerequisitesMandatoryOverride - the value to set for indicating whether prerequisites are mandatory to override
    • isPrerequisitesMandatory

      public boolean isPrerequisitesMandatory()
      Determines if prerequisites are mandatory for the Assignable Unit (AU). The determination is based on a combination of the `prerequisitesMandatoryOverride` value and the `prerequisiteModel` configuration. If `prerequisitesMandatoryOverride` is set, it takes precedence; otherwise, the mandatory status of the `prerequisiteModel` is used.
      Returns:
      true if prerequisites are mandatory, false otherwise
    • getPrerequisiteOptionalAuIds

      public List<String> getPrerequisiteOptionalAuIds()
      Retrieves a list of optional Assignable Unit (AU) IDs from the prerequisite model. If the prerequisite model is not defined, an empty list is returned.
      Returns:
      a list of optional AU IDs, or an empty list if the prerequisite model is not set
    • getPrerequisiteReferencedAuIds

      public List<String> getPrerequisiteReferencedAuIds()
      Retrieves a list of referenced Assignable Unit (AU) IDs from the prerequisite model. If the prerequisite model is not defined, an empty list is returned.
      Returns:
      a list of referenced AU IDs, or an empty list if the prerequisite model is not set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object