Interface Result
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable, Temporal
A Result is an outcome from a Participation.
Like all OsidObjects, Result is managed by its
OsidSessions and may not be accessed by concurrent processing threads.
-
Method Summary
Modifier and TypeMethodDescriptiongetGrade()Gets the grade in this entry if the grading system is based on grades.Gets the gradeIdin this entry if the grading system is based on grades.Gets the participant in this result.Gets theIdof the participant in this result.getResultRecord(Type resultRecordType) Gets the record corresponding to the givenResultrecordType.This method is used to retrieve an object implementing the requested record.getValue()Gets the value in this entry if the grading system is not based on grades.booleanisGraded()Tests if a grade or score has been assigned to this entry.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeMethods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeMethods inherited from interface Temporal
getEndDate, getStartDate, isEffective
-
Method Details
-
getParticipantId
Id getParticipantId()Gets theIdof the participant in this result.- Returns:
- the
ParticipantId - Compliance:
mandatory- This method must be implemented.
-
getParticipant
Gets the participant in this result.- Returns:
- the
Participant - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isGraded
boolean isGraded()Tests if a grade or score has been assigned to this entry. Generally, an entry is created with a grade or score.- Returns:
trueif a grade has been assigned,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeId
Id getGradeId()Gets the gradeIdin this entry if the grading system is based on grades.- Returns:
- the grade
Id - Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGrade
Gets the grade in this entry if the grading system is based on grades.- Returns:
- the grade
- Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getValue
BigDecimal getValue()Gets the value in this entry if the grading system is not based on grades.- Returns:
- the value
- Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()istrue- Compliance:
mandatory- This method must be implemented.
-
getResultRecord
Gets the record corresponding to the givenResultrecordType.This method is used to retrieve an object implementing the requested record. TheresultRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(resultRecordType)istrue.- Parameters:
resultRecordType- the type of result record to retrieve- Returns:
- the result record
- Throws:
NullArgumentException-resultRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(resultRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-