OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.authoring.SequenceRuleForm
Implementsosid.OsidRuleForm
Description

This is the form for creating and updating sequence rules. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the SequenceSession For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetMinimumScoreMetadata
Description

Gets the metadata for the minimum score.

Returnosid.Metadatametadata for the minimum score
CompliancemandatoryThis method must be implemented.
MethodsetMinimumScore
Description

Sets the minimum score for this rule.

Parameterscardinalscoreminimum score
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetMaximumScoreMetadata
Description

Gets the metadata for the maximum score.

Returnosid.Metadatametadata for the maximum score
CompliancemandatoryThis method must be implemented.
MethodsetMaximumScore
Description

Sets the maximum score for this rule.

Parameterscardinalscoremaximum score
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCumulativeMetadata
Description

Gets the metadata for the cumulative flag.

Returnosid.Metadatametadata for the cumulative flag
CompliancemandatoryThis method must be implemented.
MethodsetCumulative
Description

Applies this rule to all previous assessment parts.

Parametersbooleancumulative true to apply to all previous assessment parts. false to apply to the immediate previous assessment part
ErrorsINVALID_ARGUMENT cumulative is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAppliedAssessmentPartsMetadata
Description

Gets the metadata for the applied assessment parts.

Returnosid.Metadatametadata for the applied assessment parts
CompliancemandatoryThis method must be implemented.
MethodapplyAssessmentParts
Description

Designates assessment parts to which the rule applies.

Parametersosid.id.Id[]assessmentPartIdsthe parts to which this rule should apply
ErrorsINVALID_ARGUMENT assessmentPartIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT assessmentPartIds is null
CompliancemandatoryThis method must be implemented.
MethodgetSequenceRuleFormRecord
Description

Gets the SequenceRuleFormRecord corresponding to the given sequence rule record Type.

Parametersosid.type.TypesequenceRuleRecorda sequence rule record type
Returnosid.assessment.authoring.records.SequenceRuleFormRecordthe sequence rule record
ErrorsNULL_ARGUMENT sequenceRuleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(asequenceRuleRecordType) is false
CompliancemandatoryThis method must be implemented.