Interface Instruction
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidEnabler, OsidObject, OsidRelationship, OsidRule, OsidRuleApplicator, Temporal
A Instruction appliies a Check to an Agenda .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if evaluation of the next instruction should continue if the check in this instruction succeeds.booleanTests if evaluation of the next instruction should continue if the check in this instruction fails.Gets the agenda.Gets theIdof the agenda.getCheck()Gets the check.Gets theIdof the check.getInstructionRecord(Type instructionRecordType) Gets the instruction record corresponding to the givenInstructionrecordType.Gets the message to be returned upon failure of the check evaluation.booleanTests if failure of the check should be interpreted as a warning and not a failure.longorder()The processing order for thisInstruction.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidEnabler
getCyclicEvent, getCyclicEventId, getCyclicTimePeriod, getCyclicTimePeriodId, getEvent, getEventId, getSchedule, getScheduleId, getTimePeriod, getTimePeriodId, isOperationalDuringCyclicEvent, isOperationalDuringCyclicTimePeriod, isOperationalDuringEvent, isOperationalDuringTimePeriod, isOperationalOnSchedule, isRequirementModifier and TypeMethodDescriptionGets the cyclic event.Gets the cyclic eventId.Gets the cyclic time period.Gets the cyclic time periodId.getEvent()Gets the event.Gets the eventId.Gets the schedule.Gets the scheduleId.Gets the time period.Gets the time periodId.booleanTests if the operational status of the enabler is governed by aCyclicEvent.booleanTests if this enabler is applied to a recurringCyclicTimePeriod.booleanTests if the operational status of the enabler is governed by anEvent.booleanTests if this enabler is applied to aTimePeriod.booleanTests if the operational status of the enabler is governed by aSchedule.booleanTests if thisOsidEnableris a requirement.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRuleMethods inherited from interface OsidRuleApplicator
getAppliedCyclicTimePeriod, getAppliedCyclicTimePeriodId, getAppliedResource, getAppliedResourceId, getAppliedTimePeriod, getAppliedTimePeriodId, isAppliedToCyclicTimePeriod, isAppliedToResource, isAppliedToTimePeriodModifier and TypeMethodDescriptionGets the cyclic time period.Gets the cyclic time periodId.Gets the resource.Gets the resourceId.Gets the time period.Gets the time periodId.booleanTests if applicability depends on a recurringCyclicTimePeriod.booleanTests if the applicability depends on a resource.booleanTests if applicability depends on aTimePeriod.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getAgendaId
Id getAgendaId()Gets theIdof the agenda.- Returns:
- the agenda
Id - Compliance:
mandatory- This method must be implemented.
-
getAgenda
Gets the agenda.- Returns:
- the agenda
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCheckId
Id getCheckId()Gets theIdof the check.- Returns:
- the check
Id - Compliance:
mandatory- This method must be implemented.
-
getCheck
Gets the check.- Returns:
- the check
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMessage
DisplayText getMessage()Gets the message to be returned upon failure of the check evaluation.- Returns:
- the message
- Compliance:
mandatory- This method must be implemented.
-
isWarning
boolean isWarning()Tests if failure of the check should be interpreted as a warning and not a failure.- Returns:
trueif this is a warning,falseif an error- Compliance:
mandatory- This method must be implemented.
-
continueOnFail
boolean continueOnFail()Tests if evaluation of the next instruction should continue if the check in this instruction fails. While the overall evaluation of the agenda still fails, if true, allows for other messages to be gathered.- Returns:
trueif this processing should continue on failure,falseif processing should cease upon failure- Compliance:
mandatory- This method must be implemented.
-
breakOnSuccess
boolean breakOnSuccess()Tests if evaluation of the next instruction should continue if the check in this instruction succeeds. This flag instructs the evaluator to stop evaluation and return success if this check is positive.- Returns:
trueif this processing should break on success,falseif processing should continue- Compliance:
mandatory- This method must be implemented.
-
order
long order()The processing order for thisInstruction.- Returns:
- the processing order
- Compliance:
mandatory- This method must be implemented.
-
getInstructionRecord
InstructionRecord getInstructionRecord(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException Gets the instruction record corresponding to the givenInstructionrecordType. This method is used to retrieve an object implementing the requested record. TheinstructionRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(instructionRecordType)istrue.- Parameters:
instructionRecordType- the type of instruction record to retrieve- Returns:
- the instruction record
- Throws:
NullArgumentException-instructionRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(instructionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-