Condition
The Condition concept is used to provide additional specifications regarding the circumstances under which certain rules or restrictions apply within a controlled zone.
The purpose of Condition is to define context or conditions that determine whether and when a rule or restriction is in effect. This may relate to:
- Temporary conditions: For example, times or dates when a restriction is active (such as rush hours, weekends, or seasonal regulations).
- Vehicle-specific requirements: Such as vehicle categories (cars, trucks, bicycles), emission classes, or maximum vehicle dimensions (height, length, weight).
- Behavioral conditions: Rules dependent on road user behavior, such as speed, driving direction, or compliance with traffic signs.
- Environmental conditions: For example, weather-related restrictions such as ice or fog, or dependence on infrastructure status (e.g., a bridge being open).
By specifying Conditions, rules and restrictions can be more precisely aligned with the situation, leading to greater flexibility and clarity in the management of controlled zones. This helps both road users and traffic systems correctly interpret and apply the rules.
The structure is as follows:
Attributes
Attribute | Type | Mandatory | Domain | Description |
---|---|---|---|---|
id | String | Yes | See explanation | A unique identifier from the data provider. |
version | String | Yes | 1 or higher | A unique version number from the data provider. |
id
The id
attribute assigns a name (identifier) to the trafficRegulationOrder. The following convention applies: The ID starts with a five-character code assigned by NDW. After these five characters, an underscore (_
) follows, after which the data provider may complete the identifier to create a unique identification.
Elements
Element | Type | Mandatory | Domain | Description |
---|---|---|---|---|
negate | Boolean | No | false, true | If set to true , the entire condition is negated. |
active | Boolean | No | false, true | If the condition is dynamic, this attribute is set to true when the condition is currently active and false when it is inactive. |
Concrete Implementations
Condition is an abstract class and cannot be used directly. Within the Dutch profile, the following implementations are used:
XML Example
<d2:payload xmlns:tro="http://datex2.eu/schema/3/trafficRegulation" xmlns:loc="http://datex2.eu/schema/3/locationReferencing" xmlns:cz="http://datex2.eu/schema/3/controlledZone" xmlns:comx="http://datex2.eu/schema/3/commonExtension" xmlns:com="http://datex2.eu/schema/3/common" xmlns:d2="http://datex2.eu/schema/3/d2Payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cz:ControlledZoneTablePublication" lang="nl" modelBaseVersion="3" xsi:schemaLocation="http://datex2.eu/schema/3/d2Payload LevelC_3_D2Payload.xsd">
<com:publicationTime>2024-11-13T09:00:50.000356907Z</com:publicationTime>
<com:publicationCreator>
<com:country>nl</com:country>
<com:nationalIdentifier>NDWNL</com:nationalIdentifier>
</com:publicationCreator>
<cz:headerInformation>
<com:informationStatus>real</com:informationStatus>
</cz:headerInformation>
<cz:controlledZoneTable>
...
<cz:trafficRegulationOrder id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_TRO" version="1">
...
<tro:trafficRegulation id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_TR" version="1">
<tro:typeOfRegulation xsi:type="tro:AccessRestriction">
<tro:accessRestrictionType>noEntry</tro:accessRestrictionType>
</tro:typeOfRegulation>
<tro:condition xsi:type="tro:ConditionSet" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_CS" version="1">
<tro:operator>and</tro:operator>
<tro:conditions xsi:type="tro:ValidityCondition" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_VC" version="1">
...
</tro:conditions>
<tro:conditions xsi:type="tro:LocationCondition" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_area" version="1">
...
</tro:conditions>
</tro:conditions>
</tro:trafficRegulation>
</cz:trafficRegulationOrder>
</cz:urbanVehicleAccessRegulation>
<cz:urbanVehicleAccessRegulation id="NDW11_500de66b-b51e-465f-8309-6d5eda0de5a1" version="1">
..
</cz:urbanVehicleAccessRegulation>
</cz:controlledZoneTable>
</d2:payload>