Home » railML newsgroups » railml.timetable » Extension of Enum @trainUsage of <category>
Extension of Enum @trainUsage of <category> [message #2271] Mon, 11 November 2019 16:02 Go to next message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Hi,

in unserer letzten TT-Developer Telco haben wir uns die Wiki Beschreibung zu <category> angeschaut. Also der Klassifikation von Zügen, etwa in Regio oder IC. Dabei ist uns aufgefallen, dass das verwendete Enum für @trainUsage auf die Werte "passenger", "goods" und "mixed" festgelegt ist. In der Diskussion stellte sich heraus, dass es durchaus Bedarf gäbe, mindestens den Wert "locomotive" hinzuzufügen, um etwa Loküberführungen besser beschreiben zu können. Ausserdem wurde angeregt, das Enum - wie viele andere auch - erweiterbar zu machen. Diese Änderungen könnten mit der Version 2.5 in den Standard aufgenommen werden.

Welche weiteren Werte sollte das Enum aufweisen? Gibt es Gründe von einer Erweiterbarkeit des Enums abzusehen?

----------------------------------------------

in our last TT-Developer Telco we looked at the Wiki page for <category>. In other words, the classification of trains, for example in commuter or express trains. We noticed that the used enum for @trainUsage is fixed to the values "passenger", "goods" and "mixed". In the discussion it turned out that there would be a need to add at least the value "locomotive" in order to describe locomotive transfers better. In addition, it was suggested that the enum - like many others - should be made extendable. These changes could be included in the standard with version 2.5.

What other values should the enum have? Are there any reasons not to extend the enum?

Best regards, Milan




Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: Extension of Enum @trainUsage of <category> [message #2272 is a reply to message #2271] Mon, 11 November 2019 16:16 Go to previous messageGo to next message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Ticket for this issue was created at https://trac.railml.org/ticket/371#ticket.
Ein Ticket für diesen Vorgang wurde unter https://trac.railml.org/ticket/371#ticket angelegt.


Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: Extension of Enum @trainUsage of <category> [message #2285 is a reply to message #2272] Fri, 06 December 2019 14:47 Go to previous messageGo to next message
Janne Möller is currently offline  Janne Möller
Messages: 14
Registered: March 2019
Location: Oslo
Junior Member
Hello Milan,

in the Norwegian railway sector we are wishing for "work" as a new value in <category>@trainUsage.

Best regards,
Janne Möller
Re: Extension of Enum @trainUsage of <category> [message #2300 is a reply to message #2285] Fri, 03 January 2020 15:09 Go to previous messageGo to next message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Hi Janne,

in order to better support your request here, could you please outline the semantics of the new enum value? This is important in order to understand if new semantic constraints need to be put in place.

Thanks in advance.

Best regards, Milan


Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: Extension of Enum @trainUsage of <category> [message #2343 is a reply to message #2300] Tue, 25 February 2020 10:25 Go to previous messageGo to next message
Janne Möller is currently offline  Janne Möller
Messages: 14
Registered: March 2019
Location: Oslo
Junior Member
Dear Milan,

We want to use this attribute for trains that are used for construction work/repair work in the tracks. Generally, trains used for infrastructure management activities. Maybe there is a better word than "work" for it?

Best regards,
Janne Möller
Re: Extension of Enum @trainUsage of <category> [message #2379 is a reply to message #2343] Mon, 09 March 2020 14:49 Go to previous messageGo to next message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Hi all,

we discussed this topic in our last developer telephone conference. We decided that we will not extend the enum by any new values as part of the standard. Reason for this is that we found that it would be very hard to impossible to define a complete list of values once we started with this. Therefore we will stick with the existing values in the standard. However we also agreed, that other values may make sense in certain use cases. In consequence we will allow custom tags for the enum of @trainUsage so that these use cases can be handled, although some clarification between producer and consument will be necessary.

Ticket for the change: https://trac.railml.org/ticket/375

Best regards, Milan


Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: Extension of Enum @trainUsage of <category> [message #2390 is a reply to message #2379] Tue, 10 March 2020 17:04 Go to previous message
Milan Wölke is currently offline  Milan Wölke
Messages: 139
Registered: April 2007
Senior Member
Hi all,

the enum has been extended to allow for custom values. a preview of this change can be reviewed at https://svn.railml.org/railML2/branches/trainUsage-customVal ues/.

This branch has also been merged to the railML 2.5 development branch available here: https://svn.railml.org/railML2/branches/railML2.5-dev/

Best regards, Milan


Milan Wölke – Timetable scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Previous Topic: blockPart mission="other:..."
Next Topic: [railML2] Modelling of crossings/overtakings
Goto Forum:
  


Current Time: Thu Mar 28 11:05:06 CET 2024