Class AssignableUnit
java.lang.Object
dev.jcputney.elearning.parser.input.aicc.AssignableUnit
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the AU password associated with this assignable unit.Retrieves the command line associated with this assignable unit.Retrieves the AICC completion criteria for the current context or object.Retrieves the core vendor associated with this assignable unit.Retrieves the descriptor associated with the assignable unit.Retrieves the file name associated with this assignable unit.Retrieves the mastery score associated with this assignable unit.Retrieves the normalized mastery score.Retrieves the maximum score associated with this assignable unit.Retrieves the maximum time allowed for this assignable unit.Retrieves the maximum time allowed normalized as a Duration object.Retrieves the prerequisite model associated with this assignable unit.Retrieves a list of optional Assignable Unit (AU) IDs from the prerequisite model.Retrieves a list of referenced Assignable Unit (AU) IDs from the prerequisite model.Retrieves the prerequisites expression associated with this assignable unit.Retrieves the value indicating whether the prerequisites mandatory override is enabled.Retrieves the system identifier associated with the assignable unit.Retrieves the system vendor associated with this assignable unit.Retrieves the time limit action associated with this assignable unit.Retrieves the list of time limit actions in a normalized format.getType()Retrieves the type associated with this assignable unit.Retrieves the web launch configuration associated with the assignable unit.inthashCode()booleanDetermines if prerequisites are mandatory for the Assignable Unit (AU).voidsetAuPassword(String auPassword) Sets the AU (Assignable Unit) password for this object.voidsetCommandLine(String commandLine) Sets the command line associated with this assignable unit.voidsetCompletionCriteria(AiccCompletionCriteria completionCriteria) Sets the completion criteria for the current object.voidsetCoreVendor(String coreVendor) Sets the core vendor associated with this assignable unit.voidsetDescriptor(Descriptor descriptor) Sets the descriptor associated with this assignable unit.voidsetFileName(String fileName) Sets the file name for the assignable unit.voidsetMasteryScore(String masteryScore) Sets the mastery score for the assignable unit.voidsetMasteryScoreNormalized(Double masteryScoreNormalized) Sets the normalized mastery score for a learning object or module.voidsetMaxScore(String maxScore) Sets the maximum score for the assignable unit.voidsetMaxTimeAllowed(String maxTimeAllowed) Sets the maximum time allowed for this assignable unit.voidsetMaxTimeAllowedNormalized(Duration maxTimeAllowedNormalized) Sets the maximum allowed time in a normalized format.voidsetPrerequisiteModel(AiccPrerequisiteExpression prerequisiteModel) Sets the prerequisite model for the current object with the provided AiccPrerequisiteExpression instance.voidsetPrerequisitesExpression(String prerequisitesExpression) Sets the prerequisites expression for the assignable unit.voidsetPrerequisitesMandatoryOverride(Boolean prerequisitesMandatoryOverride) Sets the prerequisites mandatory override flag.voidsetSystemId(String systemId) Sets the system identifier for the assignable unit.voidsetSystemVendor(String systemVendor) Sets the system vendor for the assignable unit.voidsetTimeLimitAction(String timeLimitAction) Sets the time limit action for the assignable unit.voidsetTimeLimitActionNormalized(List<String> timeLimitActionNormalized) Sets the normalized time limit actions for the assignable unit.voidSets the type associated with this assignable unit.voidsetWebLaunch(String webLaunch) Sets the web launch configuration associated with the assignable unit.
-
Constructor Details
-
AssignableUnit
public AssignableUnit()
-
-
Method Details
-
getSystemId
Retrieves the system identifier associated with the assignable unit.- Returns:
- the system identifier as a
String
-
setSystemId
Sets the system identifier for the assignable unit.- Parameters:
systemId- the system identifier to set as a String
-
getCommandLine
Retrieves the command line associated with this assignable unit.- Returns:
- the command line as a String
-
setCommandLine
Sets the command line associated with this assignable unit.- Parameters:
commandLine- the command line to set as a String
-
getFileName
Retrieves the file name associated with this assignable unit.- Returns:
- the file name as a String
-
setFileName
Sets the file name for the assignable unit.- Parameters:
fileName- the file name to set as a String
-
getCoreVendor
Retrieves the core vendor associated with this assignable unit.- Returns:
- the core vendor as a String
-
setCoreVendor
Sets the core vendor associated with this assignable unit.- Parameters:
coreVendor- the core vendor to set as a String
-
getType
Retrieves the type associated with this assignable unit.- Returns:
- the type as a String
-
setType
Sets the type associated with this assignable unit.- Parameters:
type- the type to set as a String
-
getMaxScore
Retrieves the maximum score associated with this assignable unit.- Returns:
- the maximum score as a String
-
setMaxScore
Sets the maximum score for the assignable unit.- Parameters:
maxScore- the maximum score to set as a String
-
getMasteryScore
Retrieves the mastery score associated with this assignable unit.- Returns:
- the mastery score as a String
-
setMasteryScore
Sets the mastery score for the assignable unit.- Parameters:
masteryScore- the mastery score to set as a String
-
getMaxTimeAllowed
Retrieves the maximum time allowed for this assignable unit.- Returns:
- the maximum time allowed as a String
-
setMaxTimeAllowed
Sets the maximum time allowed for this assignable unit.- Parameters:
maxTimeAllowed- the maximum time allowed to set as a String
-
getTimeLimitAction
Retrieves the time limit action associated with this assignable unit.- Returns:
- the time limit action as a String
-
setTimeLimitAction
Sets the time limit action for the assignable unit.- Parameters:
timeLimitAction- the time limit action to set as a String
-
getSystemVendor
Retrieves the system vendor associated with this assignable unit.- Returns:
- the system vendor as a String
-
setSystemVendor
Sets the system vendor for the assignable unit.- Parameters:
systemVendor- the system vendor to set as a String
-
getWebLaunch
Retrieves the web launch configuration associated with the assignable unit.- Returns:
- the web launch configuration as a String
-
setWebLaunch
Sets the web launch configuration associated with the assignable unit.- Parameters:
webLaunch- the web launch configuration to set as a String
-
getAuPassword
Retrieves the AU password associated with this assignable unit.- Returns:
- the AU password as a String
-
setAuPassword
Sets the AU (Assignable Unit) password for this object.- Parameters:
auPassword- the AU password to set as a String
-
getDescriptor
Retrieves the descriptor associated with the assignable unit.- Returns:
- the descriptor as a Descriptor object
-
setDescriptor
Sets the descriptor associated with this assignable unit.- Parameters:
descriptor- the descriptor to set as aDescriptorobject
-
getPrerequisitesExpression
Retrieves the prerequisites expression associated with this assignable unit.- Returns:
- the prerequisites expression as a String
-
setPrerequisitesExpression
Sets the prerequisites expression for the assignable unit.- Parameters:
prerequisitesExpression- the prerequisites expression to set as a String
-
getPrerequisiteModel
Retrieves the prerequisite model associated with this assignable unit.- Returns:
- the prerequisite model as an
AiccPrerequisiteExpression
-
setPrerequisiteModel
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
Retrieves the AICC completion criteria for the current context or object.- Returns:
- the completion criteria of type AiccCompletionCriteria associated with this instance
-
setCompletionCriteria
Sets the completion criteria for the current object.- Parameters:
completionCriteria- the AICC completion criteria to be set
-
getMasteryScoreNormalized
Retrieves the normalized mastery score.- Returns:
- the normalized mastery score as a Double, or null if it is not set.
-
setMasteryScoreNormalized
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
Retrieves the maximum time allowed normalized as a Duration object.- Returns:
- the maximum normalized time allowed
-
setMaxTimeAllowedNormalized
Sets the maximum allowed time in a normalized format.- Parameters:
maxTimeAllowedNormalized- the maximum duration allowed, represented as aDuration
-
getTimeLimitActionNormalized
Retrieves the list of time limit actions in a normalized format.- Returns:
- a list of strings representing the normalized time limit actions
-
setTimeLimitActionNormalized
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
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
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
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
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
-
hashCode
public int hashCode()
-