| Interface | osid.OsidRuleApplicator | ||
|---|---|---|---|
| Implements | osid.OsidEnabler | ||
| Implemented By | osid.rules.check.Instruction | ||
| Description |
An If OsidRuleApplicators define several built-in
dimensions to govern its own operational status. In in active
OsidRuleApplicator is never applicable in an
OsidRule evaluation.
OsidRuleApplicators define several built-in
application conditions to determine if an
OsidRule is applicable in an evaluation.
| ||
| Method | isAppliedToTimePeriod | ||
| Description |
Tests if applicability depends on a
| ||
| Return | boolean | true if the enabler applied to a time period,
false otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedTimePeriodId | ||
| Description |
Gets the time period | ||
| Return | osid.id.Id | the time period Id | |
| Errors | ILLEGAL_STATE | isAppliedToTimePeriod() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedTimePeriod | ||
| Description |
Gets the time period. | ||
| Return | osid.calendaring.TimePeriod | the time period | |
| Errors | ILLEGAL_STATE | isAppliedToTimePeriod() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAppliedToCyclicTimePeriod | ||
| Description |
Tests if applicability depends on a recurring
| ||
| Return | boolean | true if the enabler is appleid to a cycic time period,
false otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedCyclicTimePeriodId | ||
| Description |
Gets the cyclic time period | ||
| Return | osid.id.Id | the cyclic time period Id | |
| Errors | ILLEGAL_STATE | isAppliedToCyclicTimePeriod() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedCyclicTimePeriod | ||
| Description |
Gets the cyclic time period. | ||
| Return | osid.calendaring.cycle.CyclicTimePeriod | the cyclic time period | |
| Errors | ILLEGAL_STATE | isAppliedToCyclicTimePeriod() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | isAppliedToResource | ||
| Description |
Tests if the applicability depends on a resource. | ||
| Return | boolean | true if the rule applies to a resource, false
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedResourceId | ||
| Description |
Gets the resource | ||
| Return | osid.id.Id | the resource Id | |
| Errors | ILLEGAL_STATE | isAppliedToResource() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAppliedResource | ||
| Description |
Gets the resource. | ||
| Return | osid.resource.Resource | the resource | |
| Errors | ILLEGAL_STATE | isAppliedToResource() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |