public interface Result extends OsidObject, Temporal, Subjugateable
An Result is an outcome from a Participation.
| Modifier and Type | Method and Description |
|---|---|
Grade |
getGrade()
Gets the grade in this entry if the grading system is based on grades.
|
Id |
getGradeId()
Gets the grade
Id in this entry if the grading system
is based on grades. |
Participant |
getParticipant()
Gets the participant in this result.
|
Id |
getParticipantId()
Gets the
Id of the participant in this result. |
ResultRecord |
getResultRecord(Type resultRecordType)
Gets the record corresponding to the given
Result
record Type. |
java.math.BigDecimal |
getValue()
Gets the value in this entry if the grading system is not based on
grades.
|
boolean |
isGraded()
Tests if a grade or score has been assigned to this entry.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getParticipantId()
Id of the participant in this result. Participant Id mandatory - This method must be implemented. Participant getParticipant() throws OperationFailedException
Participant OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean isGraded()
true if a grade has been assigned, false
otherwisemandatory - This method must be implemented. Id getGradeId()
Id in this entry if the grading system
is based on grades. Id IllegalStateException - isGraded() is
false or GradeSystem.isBasedOnGrades()
is false mandatory - This method must be implemented. Grade getGrade() throws OperationFailedException
IllegalStateException - isGraded() is
false or GradeSystem.isBasedOnGrades()
is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. java.math.BigDecimal getValue()
IllegalStateException - isGraded() is
false or GradeSystem.isBasedOnGrades()
is true mandatory - This method must be implemented. ResultRecord getResultRecord(Type resultRecordType) throws OperationFailedException
Result
record Type. This method is used to retrieve an object
implementing the requested record. The resultRecordType
may be the Type returned in getRecordTypes()
or any of its parents in a Type hierarchy where
hasRecordType(resultRecordType) is true
.resultRecordType - the type of result record to retrieveNullArgumentException - resultRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(resultRecordType) is false
mandatory - This method must be implemented.