The purpose of tariff description is to present a textual presentation of the currently selected tariff. When a tariff package is selected in the CWT, the user interface can display this description to inform about the cost.
The CWT can have multiple tariff packages defined and the description can change according to the selected tariff package.
Typical information in the description is the actual rates for each weekday and time interval defined in the tariff package. The description for each tariff package is defined in the CWT configuration file. The definition is dived into two columns and several rows to resemble a typical tariff description with time in the first column and price in the second.
Mon-Fri $2 per hour
Sat-Sun $1 per hour
Excerpt from a CWT configuration file:
<TARIFFPACKAGE name="sample">
<description row="0" col="0" string="Mon@-@Fri@:"/>
<description row="0" col="1" string="$2 per hour"/>
<description row="1" col="0" string="Sat@-@Sun@:"/>
<description row="1" col="1" string="$1 per hour"/>
<tariff>
PACKAGE "MondayToWedneday";
INTERVAL "mon-fri";
timepredicate = "($weekday in [mon fri])";
tariffrate = unit 2 per 60;
INTERVAL "sat-sun";
timepredicate = "($weekday in [sat sun])";
tariffrate = unit 1 per 60;
</tariff>
</TARIFFPACKAGE>