public class Condition extends Entity
Rule and can apply to many different types of data and entities.
Conditions are structured in hierarchical tree. A condition's type (see ConditionType) defines the meaning of
each condition in the tree and can be an operator, special operator, data or an asset.
Depending on the type of condition, it can have a minimum of 0 and maximum of 1 entity properties (Device, Driver, Diagnostic, WorkTime, Zone or ZoneType) defined per condition. Operator conditions (OR, AND, >, <, ==, NOT) will not have any entity properties populated. Special Operator conditions evaluate against special types of data such as Aux data, Zones, WorkHours, etc. and may have the entity property populated and/or a child condition populated with a Data condition. Asset conditions will only have the asset entity property populated.
The unit of measure for data is described either by the related Diagnostic's
UnitOfMeasure or as follows:
A tree of conditions can define simple or complex rules and can be very powerful. Please take into consideration all possible consequences of a series of rules. Overly complex, poorly written or an excessive number of rules can have undesirable performance effects.
This class is in development. Its public interface is a subject to change.
Entity.EntityBuilder<C extends Entity,B extends Entity.EntityBuilder<C,B>>| Constructor and Description |
|---|
Condition() |
Copyright © 2023. All rights reserved.