-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alarm object documentation, condition documentation
- Loading branch information
1 parent
ceb9a0d
commit 198496b
Showing
6 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
Alarm Condition | ||
=================== | ||
|
||
Condition objects define conditions that can raise alarms. | ||
|
||
Each has to define a :meth:`.Condition.check` method that accepts :class:`.SensorValues` . | ||
The method should return ``True`` if the alarm condition is met, and ``False`` otherwise. | ||
|
||
Conditions can be added (``+``) together to make compound conditions, and a single call to ``check`` will only return true | ||
if both conditions return true. If any condition in the chain returns false, evaluation is stopped and | ||
the alarm is not raised. | ||
|
||
Conditions can | ||
|
||
.. inheritance-diagram:: pvp.alarm.condition | ||
|
||
.. automodule:: pvp.alarm.condition | ||
:members: | ||
:undoc-members: | ||
:autosummary: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ Alarm | |
========== | ||
|
||
|
||
|
||
Alarm System Overview | ||
---------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters