public interface GradeSystem extends OsidObject, Aggregateable
A GradeSystem
represents a grading system. The system
can be based on assigned Grades or based on a numeric scale.
Modifier and Type | Method and Description |
---|---|
IdList |
getGradeIds()
Gets the grade
Ids in this system ranked from highest
to lowest. |
GradeList |
getGrades()
Gets the grades in this system ranked from highest to lowest.
|
GradeSystemRecord |
getGradeSystemRecord(Type gradeSystemRecordType)
Gets the grade system record corresponding to the given
GradeSystem record Type. |
java.math.BigDecimal |
getHighestNumericScore()
Gets the highest number in a numeric grading system.
|
java.math.BigDecimal |
getLowestNumericScore()
Gets the lowest number in a numeric grading system.
|
java.math.BigDecimal |
getNumericScoreIncrement()
Gets the incremental step.
|
boolean |
isBasedOnGrades()
Tests if the grading system is based on grades.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
boolean isBasedOnGrades()
false
if the system is a numeric scoremandatory
- This method must be implemented. IdList getGradeIds()
Ids
in this system ranked from highest
to lowest. Ids
IllegalStateException
- isBasedOnGrades()
is false
mandatory
- This method must be implemented. GradeList getGrades() throws OperationFailedException
IllegalStateException
- isBasedOnGrades()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. java.math.BigDecimal getLowestNumericScore()
IllegalStateException
- isBasedOnGrades()
is true
mandatory
- This method must be implemented. java.math.BigDecimal getNumericScoreIncrement()
IllegalStateException
- isBasedOnGrades()
is true
mandatory
- This method must be implemented. java.math.BigDecimal getHighestNumericScore()
IllegalStateException
- isBasedOnGrades()
is true
mandatory
- This method must be implemented. GradeSystemRecord getGradeSystemRecord(Type gradeSystemRecordType) throws OperationFailedException
GradeSystem
record Type.
This method is used to
retrieve an object implementing the requested record. The
gradeSystemRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(gradeSystemRecordType)
is true
.gradeSystemRecordType
- the type of the record to retrieveNullArgumentException
- gradeSystemRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(gradeSystemRecordType)
is false
mandatory
- This method must be implemented.