Enable/Disable Rule
Introduction
This rule represents a pattern that can be used to enable or disable entities or to control actions in response to track behaviour. Note that the timer input is required to ensure the actions do not flip-flop when different tracks are processed by rule. For example a track inside the area will meet the requirements of the area check and therefore the actions will be triggered, however the next track checked could be outside the area in which case the area check will fail and the actions will be reversed. To avoid the actions being continuously triggered and then reversed the timer is used to keep the area rule output true for the specified time period. This means as long as a track is in the area the timer period will be reset and the rule will remain broken until the track has left the area and the timer has expired.
This example demonstrates the ability to enable or disable another rule based on whether a track is detected in the specified area.
Contents
Configuration
Nodes
Inputs
Track Sighting Input Rule Inputs | Track Sighting Input
Time Input Rule Inputs | Time Input
Link
Time Link Rule Checks | Time Link
Time Frame: This defines the length of time the rule will be disabled for. In this example, after 8 seconds, the rule will become active again.
Check
Area Check Rule Checks | Area Check
Actions
Rule State Rule Actions | Rule State
Enabled: Select to enable a disabled rule. Leave unchecked to disable an enabled rule.Â
Rule: Select the rule to enable/disable.
Action: Input.Â
PPI Example
In this example Disable Rule, an Area Check disables another rule. The area is the Orchard Area, in blue, and the rule is the Gate Rule. Here, track 0-1 enters the Orchard Area and therefore disables the Gate Rule; a rule which controls access to the Field Area (in purple). Track 0-2 approaches the Field Area.
Because the Gate Rule is disabled, track 0-2 does not trigger an alarm by breaking a rule in the Field Area.Â
However, the Gate Rule was only disabled for 8 seconds. Therefore, after 8 seconds, the Gate Rule is enabled and track 0-2 now breaks the rule and triggers an alarm in the Field Area.Â
Video
The following video demonstrates how to create an Enable / Disable Rule. This rule disables the Gate Rule for 8 seconds when a track enters the Orchard Area. After 8 seconds has elapsed the Gate Rule is enabled and the track that breaks the rule triggers the alarm:
Related Information
-
Scheduled Layer Rule (Witness 4.0)
-
Proximity Rule (Witness 4.0)
-
Multiple Areas Rule (Witness 4.0)
-
Area Movement Rule (Witness 4.0)
-
Area Transition Rule (Witness 4.0)
-
Crowd Rule (Witness 4.0)
-
Enable/Disable Rule (Witness 4.0)
-
Schedule Rule (Witness 4.0)
-
Gate Rule (Witness 4.0)
-
Count Rule (Witness 4.0)
-
Area Speed Limit Rule (Witness 4.0)
-
Disarm Rule (Witness 4.0)
-
ML Classification Rule Wizard (Witness 4.0)
-
Area Rule with Filtered Property Check (Witness 4.0)
-
Automatic Colour Change (Witness 4.0)