ConditionSet
A ConditionSet is used to group a collection of conditions that collectively determine when a specific rule or restriction applies within a controlled zone. The purpose of a ConditionSet is to define and structure a logical combination of multiple conditions. This allows for easy modeling of complex situations or rules. A ConditionSet can consist of multiple Conditions, which are interpreted as a whole.
Examples of use:
- Combined conditions: For example, a rule that applies only on weekdays (time condition) and for vehicles above a certain weight (vehicle condition).
- Specific scenarios: Such as an access restriction that applies during events (time condition) and only for vehicles with a specific emission class (vehicle-specific condition).
- Regulation flexibility: For example, speed limits that vary based on weather conditions (such as fog or ice).
By using a ConditionSet, a controlled zone can be precisely defined, leading to better compliance and enforcement of regulations. It also helps communicate complex conditions in a standardized way to systems and users.
The structure is as follows:
Elements
The ConditionSet
type is derived from Condition
and introduces the new mandatory elements operator
and conditions
.
Element | Type | Mandatory | Domain | Description |
---|---|---|---|---|
operator | ConditionsOperator | Yes | or, xor, and | Specifies the operator that should be applied between the conditions in the set |
conditions | Condition | Yes, 1 or more | N/A | Specifies the conditions present in the set |