| Interface | osid.rules.check.InstructionApplicabilitySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.rules.check.RulesCheckManager | ||
osid.rules.check.RulesCheckProxyManager | |||
| Description |
This session provides methods to evaluate
Instructions are also
OsidRuleApplicators for the related
Checks. OsidRuleApplicators have
built-in rules to vary by time, time period, and by a
demographic Resource. One or more of these
dimenions may be required. Where they are not required,
providing these dimensions may or may not have any effect on
the evaluation. For example, an Instruction that
varies with a specific demographic may be given an anonymous
resource with which to evaluate. Similarly, not supplying a
time period may only match an Instruction with no
time period that relates to a Check that fails.
An | ||
| Method | getEngineId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Engine Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEngine | ||
| Description |
Gets the | ||
| Return | osid.rules.Engine | the engine | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canEvaluateInstructions | ||
| Description |
Tests if this user can evaluate instructions. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in
this session will result in a
| ||
| Return | boolean | false if instruction evaluation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getInstructionCondition | ||
| Description |
Gets an | ||
| Parameters | osid.id.Id | agendaId | the Id of an Agenda |
| Return | osid.rules.check.InstructionCondition | an instruction condition | |
| Errors | NOT_FOUND | agendaId is not found | |
| NULL_ARGUMENT | agendaId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure making request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getApplicableInstructions | ||
| Description |
Gets a list of applicable | ||
| Parameters | osid.id.Id | agendaId | the Id of an Agenda |
osid.rules.check.InstructionCondition | instructionCondition | an instruction condition | |
| Return | osid.rules.check.InstructionList | a list of applicable instructions | |
| Errors | NOT_FOUND | instructionId is not found | |
| NULL_ARGUMENT | instructionId or instructionCondition is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | instructionCondition did not originate from
getInstructionCondition() | ||
| Compliance | mandatory | This method must be implemented. | |