Element Path: <cwt><COMMONTARIFFGROUP>< timeRule >
Defines a time rule for a tariff package specified as a time-controlled package in the common tariff group. The rule specifies the day types for which a time controlled tariff package is valid and for how long it is valid from the daybreak at 00:00.
attributes
dayType
Value: | 0–255 |
Default: | – |
Description: | The day type when the time-controlled tariff package shall be selected. See section 0 for details on how to setup day types. |
duration
Value: | 0–1440 |
Default: | – |
Description: | Defines the number of minutes the tariff package is selected in the specified day type. If duration is set to 720 for instance, the tariff package will be selected for 720 minutes from midnight (00:00 to 12:00). |
timeControlledPackageIndex
Value: | 0–65535 |
Default: | – |
Description: | Index of the time-controlled package definition in the common tariff group. Use index 0 for the first package definition, index 1 for the second one, etc. |
Example:
Set-up where two tariff packages are defined as time-controlled. The first package “TariffPackage1” is selected on day type 0 and for the duration of 720 minutes (00:00 to 12:00). The second tariff package “TariffPackage2” is selected on both day type 1 and 2 with duration 250 minutes (00:00 to 04:10) for day type 1 and duration 600 minutes (00:00 to 10:00) for day type 2:
<COMMONTARIFFGROUP commonTariffGroupId="0">
<timeControlledPackage tariffPackageName="TariffPackage1"/>
<timeControlledPackage tariffPackageName="TariffPackage2"/>
<timeRule timeControlledPackageIndex="0" dayType="0" duration="720"/>
<timeRule timeControlledPackageIndex="1" dayType="1" duration="250"/>
<timeRule timeControlledPackageIndex="1" dayType="2" duration="600"/>
</COMMONTARIFFGROUP>