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 the Item.

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 record Type.

This method is used to retrieve an object implementing the requested record. The item_record_type may be the Type returned in get_record_types() or any of its parents in a Type hierarchy where has_record_type(item_record_type) is true .

Parameters:item_record_type (osid.type.Type) – an item record type
Returns:the response record
Return type:osid.assessment.records.ResponseRecord
Raise:NullArgumentitem_record_type is null
Raise:OperationFailed – unable to complete request
Raise:Unsupportedhas_record_type(item_record_type) is false

compliance: mandatory – This method must be implemented.