Dogma - Condition Syntax

OctoMY™ dogma

Subpages

Topics

  • dogma
  • architecture

Condition Syntax

Condition syntax is the language used for conditions.

The following formulas can be arranged into expressions with parentheses and boolean operators, where the represent selectors or values (see right column for details).

<NODE> enters location <LOCATION>
<NODE> is in location <LOCATION>
<NODE> exits location <LOCATION>

<NODE> enters view <CAMERA>
<NODE> is in view <CAMERA>
<NODE> exits view <CAMERA>

<PERSON> enters view <CAMERA>
<PERSON> is in view <CAMERA>
<PERSON> exits view <CAMERA>

unidentified person enters view <CAMERA>
unidentified person exits view <CAMERA>

<LANDMARK> enters view <CAMERA>
<LANDMARK> exits view <CAMERA>

<NODE> enters comms range
<NODE> is in comms range
<NODE> exits comms range

time since last seen <NODE> <COMPARATOR> <COUNT> <TIME-INTERVAL-UNIT>
time since last seen <LANDMARK> <COMPARATOR> <COUNT> <TIME-INTERVAL-UNIT>
time since last seen <PERSON> <COMPARATOR> <COUNT> <TIME-INTERVAL-UNIT>

<SENSOR> value becomes <COMPARATOR> <FLOAT>
<SENSOR> value is <COMPARATOR> <FLOAT>

<SENSOR> value enters range <FLOAT> to <FLOAT>
<SENSOR> value is in range <FLOAT> to <FLOAT>

Expressions

Expressions are formed when condition formulas are combined with the following operators:

Examples:

Selectors

Selectors will match zero or more items of the type specified. For example, <CAMERA> could be "#mycamera", "#mycam1,#mycam2" or * to denote a specific camera, a list of specific cameras, or any camera respectively.

If there is a typo or the item you want does not exist, the selector will return 0 items and disable the condition it was part of.

Types

The following items can be selected:

Name

Examples:

ID

Example:

List

Example:

Wildcard

Examples:

Default

Examples:

Values

Values are specified in placeholders just like selectors, but they represent literal values or enums.

Count

Valid values are all unsigned integers up to 2^64.

Time Interval Unit

Valid values are:

Comparator

Valid values are: