Home » railML newsgroups » railml.timetable » 'count' values to start with zero
'count' values to start with zero [message #699] Fri, 20 August 2010 10:53
Susanne Wunsch railML is currently offline  Susanne Wunsch railML
Messages: 0
Registered: January 2020
Hello,

There's a request for allowing 'count' attribute to start with zero.

<trainParts>
<trainPart id="tp1">
<formationTT formationRef="f1">
<passengerUsage>
<places category="class1" count="0" />
<places category="class2" count="50" />
<service count="0" name="phone" />
<service count="8" name="vis-a-vis tables"/>
</passengerUsage>
</formationTT>
</trainPart>
</trainParts>

'count="0"' defines one of the following meanings:

* There is no such 'place' or 'service' mounted/installed in the wagon.

* There may be such an 'place' or 'service' mounted/installed in the
wagon, but it is not availble for the current 'trainPart'.

For distinguishing both possibilities, the 'formation' has to be "fully"
defined in the rollingstock part of the file. This way you can define
locked cabins or locked wagons for a whole 'trainPart'.

Please have a look at further elements, where some attribute bound to
the 'tCounter' type should be also enhanced.

Comments and questions are welcome!

-- Deutsche Version --------------------------------------------------
Hallo,

Es wurde die Anforderung an mich herangetragen, für das Attribut 'count'
den Wert Null zuzulassen.

Obiges Beispiel zeigt diese Variante.

'count="0"' trägt daraufhin eine der folgenden Bedeutungen:

* Die 'places'- bzw. 'service'-Definition ist im Fahrzeug nicht
eingebaut/installiert.

* Die 'places'- bzw. 'service'-Definition ist im Fahrzeug zwar
eingebaut/installiert, allerdings für den betreffenden Zugteil nicht
verfügbar.

Um diese beiden Möglichkeiten zu unterscheiden, muss die Formation im
rollingstock-Teil der Datei vollständig beschrieben werden. Auf diese
Weise können abgesperrte Abteile oder für Fahrgäste gesperrte Wagen für
den gesamten Zugteil definiert werden.

Schauen Sie bitte auf weitere Elemente, die diese Ausweitung des
Wertebereichs für Attribute vom Typen 'tCounter' benötigen.

Vielen Dank für Hinweise, Kommentare und Fragen.

Liebe Grüße...
Susanne

--
Susanne Wunsch
Schema Coordinator: railML.common
Previous Topic: Questions about some attributes
Next Topic: Propagate 'any' attributes
Goto Forum:
  


Current Time: Fri Mar 29 07:47:55 CET 2024