Interface Action
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule, Subjugateable
An Action executes a Scene, Setting , another
ActionGroup , or other Rule . An Action is also an
OsidRule that may or may not be active.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this rule executes a scene.booleanTests if this rule executes a matching setting.booleanTests if this rule executes a scene.booleanTests if this rule executes a setting.Gets the action group for this action.Gets the action groupIdfor this action.getActionRecord(Type actionRecordType) Gets the action record corresponding to the givenActionrecordType.This method is used to retrieve an object implementing the requested record.getDelay()Gets the delay before proceeding with execution.Gets the factor by which the matching amount differs.Gets the matching controller.Gets the matching controllerId.Gets the factor by which the matching transition rate differs.Gets the action group to execute,Gets the action groupIdto execute.getScene()Gets the scene.Gets the sceneId.Gets the setting.Gets the settingId.booleanTests if this action blocks further actions until complete.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 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 OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getActionGroupId
Id getActionGroupId()Gets the action groupIdfor this action.- Returns:
- the action group
Id - Compliance:
mandatory- This method must be implemented.
-
getActionGroup
Gets the action group for this action.- Returns:
- the action group
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDelay
Duration getDelay()Gets the delay before proceeding with execution.- Returns:
- the delay
- Compliance:
mandatory- This method must be implemented.
-
isBlocking
boolean isBlocking()Tests if this action blocks further actions until complete.- Returns:
trueif blocking,falseif subsequent actions can begin before this action completes- Compliance:
mandatory- This method must be implemented.
-
executesActionGroup
boolean executesActionGroup()Tests if this rule executes a scene. IfexecutesActionGroup()istrue,hasRule(), executesScene(), executesSetting(), andexecutesMatchingSetting()must befalse.- Returns:
trueif this is a scene execution,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getNextActionGroupId
Id getNextActionGroupId()Gets the action groupIdto execute.- Returns:
- the action group
Id - Throws:
IllegalStateException-executesActionGroup()isfalse- Compliance:
mandatory- This method must be implemented.
-
getNextActionGroup
Gets the action group to execute,- Returns:
- the action group
- Throws:
IllegalStateException-executesActionGroup()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
executesScene
boolean executesScene()Tests if this rule executes a scene. IfexecutesScene()istrue,hasRule(), executesActionGroup(), executesSetting(), andexecutesMatchingSetting()must befalse.- Returns:
trueif this is a scene execution,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSceneId
Id getSceneId()Gets the sceneId.- Returns:
- the scene
Id - Throws:
IllegalStateException-executesScene()isfalse- Compliance:
mandatory- This method must be implemented.
-
getScene
Gets the scene.- Returns:
- the scene
- Throws:
IllegalStateException-executesScene()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
executesSetting
boolean executesSetting()Tests if this rule executes a setting. IfexecutesSetting()istrue,hasRule(), executesActionGroup(), executesScene(), andexecutesMatchingSetting()must befalse.- Returns:
trueif this is a setting execution,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSettingId
Id getSettingId()Gets the settingId.- Returns:
- the setting
Id - Throws:
IllegalStateException-executesSetting()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSetting
Gets the setting.- Returns:
- the setting
- Throws:
IllegalStateException-executesSetting()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
executesMatchingSetting
boolean executesMatchingSetting()Tests if this rule executes a matching setting. IfexecutesMatchingSetting()istrue,hasRule(),executesScene(), executesActionGroup(),andexecutesSetting()must befalse.- Returns:
trueif this is a setting execution,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMatchingControllerId
Id getMatchingControllerId()Gets the matching controllerId.- Returns:
- the controller
Id - Throws:
IllegalStateException-executesMatchingSetting()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMatchingController
Gets the matching controller.- Returns:
- the controller
- Throws:
IllegalStateException-executesMatchingSetting()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMatchingAmountFactor
BigDecimal getMatchingAmountFactor()Gets the factor by which the matching amount differs. A factor of 1 matches the amount of the matching controller.- Returns:
- the factor
- Throws:
IllegalStateException-executesMatchingSetting()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMatchingRateFactor
BigDecimal getMatchingRateFactor()Gets the factor by which the matching transition rate differs. A factor of 1 matches the ramp rate of the matching controller.- Returns:
- the factor
- Throws:
IllegalStateException-executesMatchingSetting()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActionRecord
Gets the action record corresponding to the givenActionrecordType.This method is used to retrieve an object implementing the requested record. TheactionRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(actionRecordType)istrue.- Parameters:
actionRecordType- the type of action record to retrieve- Returns:
- the action record
- Throws:
NullArgumentException-actionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(actionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-