Interface SequenceRule
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A SequenceRule defines the ordering of AssessmentParts
.
-
Method Summary
Modifier and TypeMethodDescriptionQualifiesisCumulative()to apply to a specific list of assessment parts.QualifiesisCumulative()to apply to a specific list of assessment parts.Gets the assessment part to which this rule belongs.Gets the assessment partIdto which this rule belongs.longGets the maximum score expressed as an integer (0-100) for this rule.longGets the minimum score expressed as an integer (0-100) for this rule.Gets the next assessment part for success of this rule.Gets the next assessment partIdfor success of this rule.getSequenceRuleRecord(Type sequenceRuleRecordType) Gets the assessment sequence rule record corresponding to the givenSequenceRulerecordType.booleanTests if the score is applied to all previous assessment parts.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getAssessmentPartId
Id getAssessmentPartId()Gets the assessment partIdto which this rule belongs.- Returns:
Idof an assessment part- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPart
Gets the assessment part to which this rule belongs.- Returns:
- an assessment part
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextAssessmentPartId
Id getNextAssessmentPartId()Gets the next assessment partIdfor success of this rule.- Returns:
Idof an assessment part- Compliance:
mandatory- This method must be implemented.
-
getNextAssessmentPart
Gets the next assessment part for success of this rule.- Returns:
- an assessment part
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMinimumScore
long getMinimumScore()Gets the minimum score expressed as an integer (0-100) for this rule.- Returns:
- minimum score
- Compliance:
mandatory- This method must be implemented.
-
getMaximumScore
long getMaximumScore()Gets the maximum score expressed as an integer (0-100) for this rule.- Returns:
- maximum score
- Compliance:
mandatory- This method must be implemented.
-
isCumulative
boolean isCumulative()Tests if the score is applied to all previous assessment parts.- Returns:
trueif the score is applied to all previous assessment parts,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAppliedAssessmentPartIds
IdList getAppliedAssessmentPartIds()QualifiesisCumulative()to apply to a specific list of assessment parts. IfisCumulative()istrue, this method may return an empty list to mean all previous assessment parts.- Returns:
- list of assessment parts
- Throws:
IllegalStateException-isCumulative()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAppliedAssessmentParts
QualifiesisCumulative()to apply to a specific list of assessment parts. IfisCumulative()istrue, this method may return an empty list to mean all previous assessment parts.- Returns:
- list of assessment parts
- Throws:
IllegalStateException-isCumulative()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleRecord
SequenceRuleRecord getSequenceRuleRecord(Type sequenceRuleRecordType) throws OperationFailedException Gets the assessment sequence rule record corresponding to the givenSequenceRulerecordType. This method is used to retrieve an object implementing the requested record. ThesequenceRuleRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(sequenceRuleRecordType)istrue.- Parameters:
sequenceRuleRecordType- the type of the record to retrieve- Returns:
- the assessment sequence rule record
- Throws:
NullArgumentException-sequenceRuleRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(sequenceRuleRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-