Inheritance diagram for Grule:
Public Member Functions | |
__init__ (name, subsystem, category, enabled, continuous=False) | |
_eval_ (value, attr, node) | |
evaluate (value, attr, node=None) | |
name () | |
subsystem () | |
category () | |
enabled () | |
enable () | |
disable () | |
reset (node=None) | |
fire (node=None) | |
fired (node=None) | |
registerAction (action, method, sender=dispatcher.Any) | |
setActions (actions) | |
sendAction (action, sender, arguments, named) | |
clearAllActions () | |
unregisterAction (action, method, sender=dispatcher.Any) |
Definition at line 21 of file gRule.py.
|
Constructor. |
|
Base method called from derived classes. determine whether or not this rule can fire or not.
Reimplemented in GruleLimit, and GruleAlarms. |
|
Method for discovering this rule's category
|
|
Forces all registered actions to be cleared. If this is not done and the scripts re-register their actions there may be extraneous rule action firings. |
|
Method used to disable evaluation of this rule |
|
Method used to enable evaluation of this rule |
|
Method for discovering whether this rule is enabled
|
|
This method is called to evaluate the rule on 'value'
Reimplemented from GruleBase. |
|
Method used to tell the rule it has fired |
|
Method for discovering whether this rule has fired
|
|
Method to retrieve the rule's name
|
|
Associate and action with a user method, optionally specifying a sender. If a sender is not specified, the rule action may be fired for all registers which declare its rule to be the rule of this action. If an attribute is specified as the sender then only if the evaluation of that specific attribute causes the action to be fired the method will be called.
|
|
Method used to reenable evaluation of this rule in the case of noncontinuous mode after it has been violated |
|
Called from the rule evaluation method to fire the appropriate alarm action.
|
|
Convenience method that gets called from the rule constructor that defines the action names (which is read from the schema/configuration).
|
|
Method for discovering this rule's subsystem
|
|
Reverse of registerAction, disassociates the action from the method.
|