Interface TriggerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidSubjugateableQuery, Suppliable

public interface TriggerQuery extends OsidRuleQuery, OsidSubjugateableQuery

This is the query for searching triggers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchControllerId

      void matchControllerId(Id controllerId, boolean match)
      Sets the controller Id for this query.
      Parameters:
      controllerId - a controller Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - controllerId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearControllerIdTerms

      void clearControllerIdTerms()
      Clears the controller Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsControllerQuery

      boolean supportsControllerQuery()
      Tests if a ControllerQuery is available.
      Returns:
      true if a controller query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getControllerQuery

      ControllerQuery getControllerQuery()
      Gets the query for a controller. Multiple retrievals produce a nested OR term.
      Returns:
      the controller query
      Throws:
      UnimplementedException - supportsControllerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsControllerQuery()} is {@code true} .
    • clearControllerTerms

      void clearControllerTerms()
      Clears the controller query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchTurnedOn

      void matchTurnedOn(boolean match)
      Matches triggers listening for ON events.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearTurnedOnTerms

      void clearTurnedOnTerms()
      Clears the ON event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchTurnedOff

      void matchTurnedOff(boolean match)
      Matches triggers listening for OFF events.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearTurnedOffTerms

      void clearTurnedOffTerms()
      Clears the OFF event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchChangedVariableAmount

      void matchChangedVariableAmount(boolean match)
      Matches triggers listening for changed amount events.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearChangedVariableAmountTerms

      void clearChangedVariableAmountTerms()
      Clears the changed amount event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchExceedsVariableAmount

      void matchExceedsVariableAmount(BigDecimal start, BigDecimal end, boolean match)
      Matches triggers listening for exceeds amount events between the given values inclusive.
      Parameters:
      start - start of range
      end - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyExceedsVariableAmount

      void matchAnyExceedsVariableAmount(boolean match)
      Matches triggers with any exceeds variable amount.
      Parameters:
      match - true to match triggers with any exceeds amount, false to match triggers with no exceeds amount
      Compliance:
      mandatory - This method must be implemented.
    • clearExceedsVariableAmountTerms

      void clearExceedsVariableAmountTerms()
      Clears the exceeds amount event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDeceedsVariableAmount

      void matchDeceedsVariableAmount(BigDecimal start, BigDecimal end, boolean match)
      Matches triggers listening for deceeds amount events between the given values inclusive.
      Parameters:
      start - start of range
      end - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - start is greater than end
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyDeceedsVariableAmount

      void matchAnyDeceedsVariableAmount(boolean match)
      Matches triggers with any deceeds variable amount.
      Parameters:
      match - true to match triggers with any deceeds amount, false to match triggers with no deceeds amount
      Compliance:
      mandatory - This method must be implemented.
    • clearDeceedsVariableAmountTerms

      void clearDeceedsVariableAmountTerms()
      Clears the deceeds amount event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchChangedDiscreetState

      void matchChangedDiscreetState(boolean match)
      Matches triggers listening for changed state events.
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearChangedDiscreetStateTerms

      void clearChangedDiscreetStateTerms()
      Clears the changed state event query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDiscreetStateId

      void matchDiscreetStateId(Id stateId, boolean match)
      Sets the state Id for this query.
      Parameters:
      stateId - a state Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - stateId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDiscreetStateIdTerms

      void clearDiscreetStateIdTerms()
      Clears the discreet state Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsDiscreetStateQuery

      boolean supportsDiscreetStateQuery()
      Tests if a StateQuery is available.
      Returns:
      true if a discreet state query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDiscreetStateQuery

      StateQuery getDiscreetStateQuery()
      Gets the query for a discreet state. Multiple retrievals produce a nested OR term.
      Returns:
      the discreet state query
      Throws:
      UnimplementedException - supportsDiscreetStateQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsDiscreetStateQuery()} is {@code true} .
    • matchAnyDiscreetState

      void matchAnyDiscreetState(boolean match)
      Matches triggers with any discreet state.
      Parameters:
      match - true to match triggers with any discreet state, false to match triggers with no discreet states
      Compliance:
      mandatory - This method must be implemented.
    • clearDiscreetStateTerms

      void clearDiscreetStateTerms()
      Clears the discreet state query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchActionGroupId

      void matchActionGroupId(Id actionGroupId, boolean match)
      Sets the action group Id for this query.
      Parameters:
      actionGroupId - an action group Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - actionGroupId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearActionGroupIdTerms

      void clearActionGroupIdTerms()
      Clears the action group Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsActionGroupQuery

      boolean supportsActionGroupQuery()
      Tests if an ActionGroupQuery is available.
      Returns:
      true if an action group query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getActionGroupQuery

      ActionGroupQuery getActionGroupQuery()
      Gets the query for an action group. Multiple retrievals produce a nested OR term.
      Returns:
      the action group query
      Throws:
      UnimplementedException - supportsActionGroupQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsActionGroupQuery()} is {@code true} .
    • matchAnyActionGroup

      void matchAnyActionGroup(boolean match)
      Matches triggers with any action group.
      Parameters:
      match - true to match triggers with any action group,, false to match triggers with no action groups
      Compliance:
      mandatory - This method must be implemented.
    • clearActionGroupTerms

      void clearActionGroupTerms()
      Clears the action group query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSceneId

      void matchSceneId(Id sceneId, boolean match)
      Sets the scene Id for this query.
      Parameters:
      sceneId - a scene Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - sceneId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSceneIdTerms

      void clearSceneIdTerms()
      Clears the scene Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSceneQuery

      boolean supportsSceneQuery()
      Tests if a SceneQuery is available.
      Returns:
      true if a scene query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSceneQuery

      SceneQuery getSceneQuery()
      Gets the query for a scene. Multiple retrievals produce a nested OR term.
      Returns:
      the scene query
      Throws:
      UnimplementedException - supportsSceneQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSceneQuery()} is {@code true} .
    • matchAnyScene

      void matchAnyScene(boolean match)
      Matches triggers with any scene.
      Parameters:
      match - true to match triggers with any scene, false to match triggers with no scenes
      Compliance:
      mandatory - This method must be implemented.
    • clearSceneTerms

      void clearSceneTerms()
      Clears the scene query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSettingId

      void matchSettingId(Id settingId, boolean match)
      Sets the setting Id for this query.
      Parameters:
      settingId - a setting Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - settingId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSettingIdTerms

      void clearSettingIdTerms()
      Clears the setting Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSettingQuery

      boolean supportsSettingQuery()
      Tests if a SettingQuery is available.
      Returns:
      true if a setting query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSettingQuery

      SettingQuery getSettingQuery()
      Gets the query for a setting. Multiple retrievals produce a nested OR term.
      Returns:
      the setting query
      Throws:
      UnimplementedException - supportsSettingQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSettingQuery()} is {@code true} .
    • matchAnySetting

      void matchAnySetting(boolean match)
      Matches triggers with any setting.
      Parameters:
      match - true to match triggers with any setting, false to match triggers with no settings
      Compliance:
      mandatory - This method must be implemented.
    • clearSettingTerms

      void clearSettingTerms()
      Clears the setting query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSystemId

      void matchSystemId(Id triggerId, boolean match)
      Sets the system Id for this query to match triggers assigned to systems.
      Parameters:
      triggerId - the trigger Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - triggerId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSystemIdTerms

      void clearSystemIdTerms()
      Clears the system Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSystemQuery

      boolean supportsSystemQuery()
      Tests if a SystemQuery is available.
      Returns:
      true if a system query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSystemQuery

      SystemQuery getSystemQuery()
      Gets the query for a system. Multiple retrievals produce a nested OR term.
      Returns:
      the system query
      Throws:
      UnimplementedException - supportsSystemQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSystemQuery()} is {@code true} .
    • clearSystemTerms

      void clearSystemTerms()
      Clears the system query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getTriggerQueryRecord

      TriggerQueryRecord getTriggerQueryRecord(Type triggerRecordType) throws OperationFailedException
      Gets the trigger query record corresponding to the given Trigger record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      triggerRecordType - a trigger record type
      Returns:
      the trigger query record
      Throws:
      NullArgumentException - triggerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(triggerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.