Rules¶
Response¶
-
class
dlkit.assessment.rules.
Response
¶ Bases:
dlkit.osid.rules.OsidCondition
A response to an assessment item.
This interface contains methods to set values in response to an assessmet item and mirrors the item record structure with the corresponding setters.
-
item_id
¶ Gets the
Id
of theItem
.Returns: the assessment item Id
Return type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
item
¶ Gets the
Item
.Returns: the assessment item Return type: osid.assessment.Item
compliance: mandatory – This method must be implemented.
-
get_response_record
(item_record_type)¶ Gets the response record corresponding to the given
Item
recordType
.This method is used to retrieve an object implementing the requested record. The
item_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(item_record_type)
istrue
.Parameters: item_record_type ( osid.type.Type
) – an item record typeReturns: the response record Return type: osid.assessment.records.ResponseRecord
Raise: NullArgument
–item_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(item_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-