Please enable JavaScript to view this site.

CWT Software Configuration Handbook 4.40

Navigation: Examples

Configuration file Example:

Scroll Prev Top Next More

<?xml version="1.0"?>
<cwt xmlns="http://tempuri.org" xmlns:xi="http://www.w3.org/2001/XMLSchema-instance">
 
<CORE articleChoice="true" powerSaveTimer="0"
autoSelectArticle="false" paymentServiceChoice="false" defaultArticleId="-1"
selectionOrder="231">
  <language id="0" value="sv-SE"/>
  <language id="1" value="en-US"/>
  <externalLight brightnessMin="0" brightnessMax="100" mode="AlwaysOff"/>
</CORE>
 
<CALENDAR normalWeek="0000012">
  <!-- New Years Day -->
  <calendarRule rule="1" month="1" day="1" dayType="3"/>
  <!-- Good Friday -->
  <calendarRule rule="4" month="99" day="98" dayType="3"/>
  <!-- Easter Sunday -->
  <calendarRule rule="4" month="0" day="0" dayType="3"/>
  <!-- Easter Monday -->
  <calendarRule rule="4" month="0" day="1" dayType="3"/>
  <!-- May Bank Holiday -->
  <calendarRule rule="3" month="5" day="1" weekday="Sunday" dayType="3"/>
  <!-- Spring Bank Holiday -->
  <calendarRule rule="3" month="5" day="25" weekday="Sunday" dayType="3"/>
  <!-- August Bank Holiday -->
  <calendarRule rule="3" month="8" day="25" weekday="Sunday" dayType="3"/>
  <!-- Christmas Day -->
  <calendarRule rule="1" month="12" day="25" dayType="3"/>
  <!-- Boxing Day -->
  <calendarRule rule="1" month="12" day="26" dayType="3"/>
</CALENDAR>
 
<PAYMENT tickFactor="1" currency="752" defaultVAT="0" defaultVATCategory="600"
defaultPurchaseCategory="10"/>
 
<PAYMENTSERVICE paymentServiceId="0" defaultTariffId="-1"
autoSelectArticle="false" name="Commuter park" articleChoice="true" tariffChoice="true" autoSelectTariff="false" ticket="Yes" step="false" userIdentifier="None"
defaultArticleId="-1" autoCardPay="false">
  <payUnit name="Coin"/>
  <payUnit name="Card"/>
</PAYMENTSERVICE>
 
<PAYMENTSERVICE paymentServiceId="1" autoSelectArticle="false" name="Commuter  Bus Company" articleChoice="true" tariffChoice="true" autoSelectTariff="false" ticket="Yes" step="false" userIdentifier="None" defaultArticleId="-1" autoCardPay="true">
  <payUnit name="Coin"/>
  <payUnit name="Card"/>
</PAYMENTSERVICE>
 
<PAYUNIT name="Coin" type="Coin">
  <channel id="0" value="5"/>
  <channel id="1" value="1"/>
  <channel id="2" value="1"/>
  <channel id="3" value="5"/>
  <channel id="4" value="10"/>
  <channel id="5" value="1"/>
  <channel id="10" value="1"/>
</PAYUNIT>
 
<TARIFFPACKAGE name="Central parking" tariffPackageId="01">
  <ticket ticketType="Normal" ticketId="0"/>
  <description row="0" col="0" string="Mon@-@Sat@ 8-18@:"/>
  <description row="0" col="1" string="25@ @Kr@/@h"/>
  <description row="1" col="0" string="Sunday@:"/>
  <description row="1" col="1" string="Free@"/>
  <tariff>
     PACKAGE "Central parking";
     max ticks = 250;
     min ticks = 1;
 
     INTERVAL "days": priority 1;
     timepredicate = "(((($daytype = 0) or ($daytype = 1)) and ($hour in [08 18[)))";
     tariffrate = linear 25 per 60;
     contiguous = true;
 
     INTERVAL "nights";
     timepredicate = "($hour in [18 to 08[)";
     tariffrate = flat 0 until end of interval;
 
     INTERVAL "Sunday": priority 1;
     timepredicate = "($daytype = 2)";
     tariffrate = flat 0 until end of step;
  </tariff>
</TARIFFPACKAGE>
 
<TARIFFPACKAGE name="Adult" tariffPackageId="2">
  <ticket ticketType="Normal" ticketId="1"/>
  <description row="0" col="0" string="Adult@ @/@ @FullFee@ @:@"/>
  <description row="0" col="1" string="20@ @kr@"/>
  <description row="1" col="0" string="7-16@ @Years@ @/@ @RedFee@ @:@"/>
  <description row="1" col="1" string="10@ @kr@"/>
  <tariff>
     PACKAGE "Adult";
     max ticks = 20;
     min ticks = 20;
 
     INTERVAL "always";
     timepredicate = #always;
     tariffrate = unit 20 per 43200;
  </tariff>
</TARIFFPACKAGE>
 
<TARIFFPACKAGE name="Reduced" tariffPackageId="3">
  <ticket ticketType="Normal" ticketId="2"/>
  <description row="0" col="0" string="Adult@ @/@ @FullFee@ @:@"/>
  <description row="0" col="1" string="20@ @kr@"/>
  <description row="1" col="0" string="7-16@ @Years@ @/@ @RedFee@ @:@"/>
  <description row="1" col="1" string="10@ @kr@"/>
  <tariff>
     PACKAGE "Reduced";
     max ticks = 10;
     min ticks = 10;
 
     INTERVAL "always";
     timepredicate = #always;
     tariffrate = unit 10 per 43200;
  </tariff>
</TARIFFPACKAGE>
 
<ARTICLE articleId="0" name="Central parking" useCommonTariffs="false" defaultTariffId="1" autoSelectTariff="true">
  <paymentService id="0"/>
</ARTICLE>
 
<ARTICLE articleId="1" name="Bus" useCommonTariffs="false" defaultTariffId="1" autoSelectTariff="true">
  <paymentService id="1"/>
</ARTICLE>
 
<ARTICLETARIFFGROUP articleTariffGroupId="0" articleId="0">
  <buttonControlledPackage id="0" tariffPackageName="Central parking"/>
</ARTICLETARIFFGROUP>
 
<ARTICLETARIFFGROUP articleTariffGroupId="0" articleId="1">
  <buttonControlledPackage id="0" tariffPackageName="Adult"/>
  <buttonControlledPackage id="1" tariffPackageName="Reduced"/>
</ARTICLETARIFFGROUP>
 
<COMMUNICATION useModem="true" useModemForCardValidation="true" connectTimeout="60" modemBaudRate="115200" modemSlot="1" modemResetLevel="2" modemHardwareResetLevel="3" modemRebootResetLevel="4" modemType="Gprs" modemName="Hayes Compatible on COM5:" modemInitString="ATE0V1+CGDCONT=1,&quot;IP&quot;,&quot;maingate.telia.se&quot;,&quot;&quot;,0,0" modemSleepString="AT%SLEEP=4" modemPinCodeString="AT" modemPhoneNumber="*99#" modemAuthUserName="" modemAuthPassword="" cwoHostName="gateway.caleaccess.com" cwoHostPort="11111" keepGprsConnection="false" validationTimeout="10" modemPowerSaveTimer="3" cwoHeartbeatInterval="5" cwoDataTransferConnectTimeout="30" cwoDataTransferReadTimeout="30"/>
 
<TICKET ticketId="0" height="300" width="380" orientation="Landscape" layout="@H@y10@f36@fb@v61&quot;Central parking&quot; @cr@lf@f20@fb
@v61&quot;Parking ends:&quot; @cr@lf@dy8@f82@fb@lu@v111 @v15 @f36@v10 @v13@lf@cr@dy3@f72@v86 @cr@f26@dy5@v35 @v47 @cr@lf@v61&quot;Paid amount: &quot; @v0 @x35@v33 @cr@lf@v80 @v82@x35@v61&quot;Ticket No: &quot; @v34">
  <margin left="50" right="0" top="0" bottom="0"/>
</TICKET>
 
<TICKET ticketId="1" height="300" width="380" orientation="Landscape" layout="@H
@y10@f36@fb@v61&quot;Commuter Bus&quot; @cr@lf@dy3@f56@fb
@v61&quot;Adult:&quot; @cr@lf@dy3@f82@fb@lu@v120 @v24 @f36@v19 @v13
@lf@cr@dy3@f72@v90 @cr@f26@dy5@v35 @v47 @x35@v61&quot;VAT: &quot; @v44 @cr@lf@v61&quot;Paid amount: &quot; @v0 @x35@v33 @cr@lf@v84 @v86
@x35@v61&quot;Ticket No: &quot; @v34">
  <margin left="50" right="0" top="0" bottom="0"/>
</TICKET>
 
<TICKET ticketId="2" height="300" width="380" orientation="Landscape" layout="@H@y10@f36@fb@v61&quot;Commuter Bus&quot; @cr@lf@dy3@f56
@fb@v61&quot;Reduced fee:&quot; @cr@lf@dy3@f82@fb@lu@v120 @v24 @f36@v19 @v13@lf@cr@dy3@f72@v90 @cr@f26@dy5@v35 @v47 @x35
@v61&quot;VAT: &quot; @v44 @cr@lf@v61&quot;Paid amount: &quot; @v0 @x35
@v33 @cr@lf@v84 @v86@x35@v61&quot;Ticket No: &quot; @v34">
  <margin left="50" right="0" top="0" bottom="0"/>
</TICKET>
 
</cwt>