Home » railML newsgroups » railml.infrastructure » railML2: trackRef@sequence (railML2, trackRef, @sequence, macro model)
railML2: trackRef@sequence [message #2157] Tue, 05 March 2019 10:48
Torben Brand is currently offline  Torben Brand
Messages: 71
Registered: March 2016
Member
Does anyone use trackRef@sequence?
https://wiki.railml.org/index.php?title=IS:trackRef_propEqui pment

We have a use case where we plan to have a macro model with only the main track forming the network. To indicate the track numbers in ocps we add topology unconnected tracks. The tracks are all connected to the <ocp> through crossSection@ocpRef and listed in ocp/propEquipment/trackRef@ref. Now it would be useful to be able to indicate the order of the parallel tracks in relation to each other. I thought of using trackRef@sequence here. But the wiki definition is to vague for this use case of ordering the tracks:

If no sequence is provided, the sequence of the referenced tracks shall be assumed as "arbitrary" or "undefined". In no case the sequence of the XML elements in the XML file shall matter.
Either all or none of the <trackRef> elements in the current <propEquipment> element shall carry sequence attributes.
The referenced track with the lowest sequence value is interpreted as the first element of the current <propEquipment>.
Each sequence value shall only be used once within the current <propEquipment>.


I suggest to add the following definition sentence to the existing definition in the wiki of trackRef@sequence:
"For parallel tracks the order is from right to left as seen in track direction of the main track from lowest to highest @sequence value."

Illustration:

|--track@type="secondary" @name="4" --- sequence:3 --->
|--------track@type="main" @name="2" ---------- sequence:2 ---------------------->
|--track@type="secondary" @name="1" --- sequence:1 --->

[Updated on: Tue, 05 March 2019 10:49]

Report message to a moderator

Previous Topic: [railml3] Signal types and functions
Goto Forum:
  


Current Time: Sun Mar 24 18:01:15 CET 2019