Referenzierung von ausgefallenen Zügen / Referencing of canceled trains [message #1436] |
Wed, 02 November 2016 12:47 |
Mićo Mićić
Messages: 16 Registered: November 2016
|
Junior Member |
|
|
Hallo zusammen
Eine Frage bezüglich der Referenzierung von ausgefallenen Zügen: Wenn ein Zug ausfällt und durch einen Extrazug ersetzt wird, so möchten wir eine Referenz auf den ausgefallenen Zug machen können. In RailML 2.3 kann ein Zugausfall abgebildet werden, eine Referenzierung ist jedoch nicht möglich.
Als Lösung könnte z.B. ein neues Attribut "replacementOf" verwendet werden. Hier ein Beispiel:
<train id="12345678" code="T16321-001" type="operational" ... processStatus="actual" replacementOf="T16320-001">
Oder gibt es bereits eine andere Möglichkeit?
Vielen Dank
Mico
----
----
Dear all,
A question regarding the referencing of cancelled trains: If a train is cancelled and replaced by a new one, we would like to make a reference to the previous train. With RailML 2.3, the train cancellation can be described, but there is no referencing possible.
As a possible solution, a new attribute like "replacementOf" could be used. Example:
<train id="12345678" code="T16321-001" type="operational" ... processStatus="actual" replacementOf="T16320-001">
Or is there already another solution?
Thanks!
Mico
|
|
|
Re: Referenzierung von ausgefallenen Zügen / Referencing of canceled trains [message #1442 is a reply to message #1436] |
Tue, 08 November 2016 16:47 |
Philip Wobst
Messages: 47 Registered: November 2013 Location: Hanover, Germany
|
Member |
|
|
Hello Mico,
currently there is no such attribute for the train. This is most likely do to the fact that we do not have a unique train identification across individual railML files at this time. With the possibility to add cancellations in railML 2.3 it might be a better approach to include the cancelled train in the file as well and then use the direct ID reference to the train instead of the 'soft link' to a code of a train that is not in the file.
I do have comments/remarks regarding your approach and these
1. Reference to the train code
The reference in the @replacementOf attribute looks like the @code attribute of another train. Currently we do not yet have a unique key for a specific 'train' in railML and thus the code in your example would have to be such an internal key to identify two train elements across two railML files.
2. Partial replacement
How would you expect to handle instances where the operating days of the original train do not match the replacement train? Can two original trains be replaced by 1 replacement train and vice versa?
3. Attribute namespace
I gues this is already clear but your own extension would have to have a different namespace - e.g. sbb:replacementOf="..."
I would hope that there is a way to identify this in the TAF/TAP TSI context and will ask one of our TT developers (in the railML TT developer group) to provide feedback if possible.
Best regards,
Philip
--
Philip Wobst
railML.org Timetable coordinator
Phone: +49-511-33699 498
Dresden; Germany www.railml.org
[Updated on: Wed, 09 November 2016 14:17] by Moderator Report message to a moderator
|
|
|
Re: Referenzierung von ausgefallenen Zügen / Referencing of canceled trains [message #1475 is a reply to message #1442] |
Tue, 17 January 2017 22:05 |
Mićo Mićić
Messages: 16 Registered: November 2016
|
Junior Member |
|
|
Hi Philip
As already discussed by email and as you have described in the forum post, our approach with a new attribute "replacementOf" would reference the @code attribute of an other railML file. That is in fact not the best way to make the reference, but I think the only one currently available with railML 2.3.
Regarding your question:
1. Reference to the train code: Already described above.
2. Partial replacement: At the SBB, each train part is planned with an own train number (@code). Thus, we should have no problems if the "replacementOf" attribute is a part of the "train" element. But I'm not the railMl expert, perhaps there is a better solution that is also suitable for others.
3. Attribute namespace: Thanks, that's clear - my mistake.
Best regards and see you at the next developer meeting!
Mico
[Updated on: Tue, 17 January 2017 22:06] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Referenzierung von ausgefallenen Zügen / Referencing of canceled trains [message #1680 is a reply to message #1592] |
Tue, 05 December 2017 15:31 |
Mićo Mićić
Messages: 16 Registered: November 2016
|
Junior Member |
|
|
Hi Leopold
Thank you for the proposal. I've just created a SVN branch and committed the first version.
Branch: https://trac.railml.org/browser/railML/railML2/branches/refe rencing-canceled-trains
Changeset: https://trac.railml.org/changeset/762/railML
Can you please review it? I'm not sure if I have defined the XSD-types correctly across the two files "timetableTypes.xsd" and "timetable.xsd". Thank you!
Here an example with unique train key and TAF/TAP TSI train id:
Update after timetable developer teclo from 18 December 2017:
operatingPeriodRef is now a child element of replacementOf because the operating period reference is also required for trains referenced by TAF/TAP TSI train id.
But: This way the Element uniqueTrainKey is not really "unique" because the operatingPeriodRef is not a part of it! (Should be discussed in the next telco... !?)
<train id="train-zug-BLSP-16321-001"
code="BLSP-16321-1"
type="commercial"
trainNumber="16321"
additionalTrainNumber="4"
cancellation="false"
processStatus="actual"
description="Bn-Mueb">
<trainPartSequence sequence="1">
<trainPartRef ref="train-part-1"/>
</trainPartSequence>
<replacements>
<replacementOf>
<operatingPeriodRef ref="operating-period-17" />
<uniqueTrainKey trainNumber="16320" scope="primary" additionalTrainNumber="7" />
</replacementOf>
<replacementOf>
<operatingPeriodRef ref="operating-period-17" />
<tafTapTsiTrainID objectType="TR"
companyCode="1185"
core="012345616320"
variant="01"
timetableYear="2017" />
</replacementOf>
</replacements>
</train>
Best regards,
Mico
[Updated on: Wed, 03 January 2018 13:33] Report message to a moderator
|
|
|