TT:trainRef: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Die Seite wurde neu angelegt: == Element '''trainRef''' == == Description == The Element '''trainRef''' is used for referencing one train belonging with others to the same interval [[TT...)
 
(Geänderte Multiplicity)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Element '''trainRef''' ==
{{ElementDocu|
== Description ==
elementName = trainRef
The Element '''trainRef''' is used for referencing one [[TT:train|train]] belonging with others to the same interval [[TT:train|train]].


Das Element '''trainRef''' wird genutzt um einen einzelnen zum Taktgefüge gehörenden [[TT:train|train]] zu referenzieren.  
|parent = {{TT:Tag|trainGroup}}
|childs=''None''
|minocc=0
|maxocc=∞
|multi={{intro|2.5}}<br>[[dev:Multiplicity|<nowiki>[</nowiki>1..∞<nowiki>]</nowiki>]] {{depr|2.5}}<br>
|ownAttributes=''None''
|semantics =
The element {{TT:Tag|trainGroup}} allows for grouping of {{TT:Doc|train}}s which are referenced using {{TT:Tag|trainRef}}.


== parent ==
{{Deu|Das Element {{TT:Tag|trainRef}} wird genutzt um einen einzelnen zum Taktgefüge gehörenden {{TT:Doc|train}} zu referenzieren.}}
:[[TT:train|train]]


== children ==
|inheritedAttributes =
:none
* {{Attr|sequence}}: This allows for sorting the referenced {{TT:Doc|train}}s. This "counter" defines the chronological order during a day.


== attributes ==
{{InheritRefAny
:sequence
|contextLink = {{TT:Doc|train}}
::Sequence describes the chronological order during a day.
|ref = {{{ref|}}}
|ref_de = {{{ref_de|}}}
|anyAttribute =  
|anyAttribute_de =
}}


:trainRefId
|constraints =
::The trainRefId references an operational or commercial [[TT:train|train]].
* {{Attr|sequence}} {{RailMLType|tPositiveCounter}}, mandatory <br/> The referenced {{TT:Doc|train}} with the lowest {{Attr|sequence}} value is interpreted as the first element of the current {{TT:Tag|trainGroup}}. <br/> Each {{Attr|sequence}} value shall only be used once within the current {{TT:Tag|trainGroup}}.


* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory


Back to [[TT:elements|elements]]:sequence
|backHome = TT:elements
}}

Latest revision as of 18:13, 1 December 2021


trainRef
 


Scheme description / Schemenbeschreibung

Position of trainRef in the XML-Tree / Position von trainRef im XML-Baum

Multiplicity / Anzahl

[0..∞]
(introduced with version 2.5)
[1..∞] (deprecated with version 2.5)

Semantics / Bedeutung

The element <trainGroup> allows for grouping of trains which are referenced using <trainRef>.

Das Element <trainRef> wird genutzt um einen einzelnen zum Taktgefüge gehörenden train zu referenzieren.

Attributes of trainRef / Attribute von trainRef

  • sequence: This allows for sorting the referenced trains. This "counter" defines the chronological order during a day.


  • ref: This refers to the id attribute of the associated train element.
  • xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?

Syntactic Constraints / Syntaktische Beschränkungen

  • sequence xs:positiveInteger, mandatory
    The referenced train with the lowest sequence value is interpreted as the first element of the current <trainGroup>.
    Each sequence value shall only be used once within the current <trainGroup>.

Best practice & Examples / Empfohlene Anwendung & Beispiele

Not yet described. / Noch nicht beschrieben.

Notes / Anmerkungen

Not yet described. / Noch nicht beschrieben.

Open issues / Offene Punkte/Pendenzen

Not yet described. / Noch nicht beschrieben.