TT:operatingPeriodRef trainPart: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
mNo edit summary |
(railML→{{rml}}) |
||
(23 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | |||
{{ElementDocu| | |||
elementName = operatingPeriodRef | elementName = operatingPeriodRef | ||
Line 5: | Line 6: | ||
The Element {{TT:Tag|operatingPeriodRef}} is used for referencing the {{TT:Doc|operatingPeriod}} for the {{TT:Doc|trainPart}}. | The Element {{TT:Tag|operatingPeriodRef}} is used for referencing the {{TT:Doc|operatingPeriod}} for the {{TT:Doc|trainPart}}. | ||
Das Element {{TT:Tag|operatingPeriodRef}} referenziert die zum {{TT:Doc|trainPart}} gehörige Verkehrsperiode. | {{Deu|Das Element {{TT:Tag|operatingPeriodRef}} referenziert die zum {{TT:Doc|trainPart}} gehörige Verkehrsperiode.}} | ||
|parent = {{TT:Tag|trainPart}} | |||
|childs = {{TT:Tag|specialService|operatingPeriodRef}} {{depr|2.2}} | |||
|minocc=0 | |||
|inheritedAttributes = | |||
{{InheritRefAny | |||
|contextLink = {{TT:Tag|operatingPeriod}} | |||
|ref = | |||
|ref_de = | |||
|anyAttribute = | |||
|anyAttribute_de = | |||
}} | |||
|ownAttributes = | |||
* {{Attr|startDate}} {{depr|2.2}}: This describes optional further restrictions of the operating period.{{StartEndDoc}} | |||
* {{Attr|endDate}} {{depr|2.2}}: This describes optional further restrictions of the operating period.{{StartEndDoc}} | |||
|constraints = | |||
* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory | |||
* {{Attr|startDate}} {{XsdType|date}}, optional {{depr|2.2}}; shall be lower or equal {{Attr|endDate}} if both are used. | |||
* {{Attr|endDate}} {{XsdType|date}}, optional {{depr|2.2}}; shall be higher or equal {{Attr|startDate}} if both are used. | |||
|semcon={{startEndCon}} | |||
|notes = | |||
Child element {{TT:Doc|specialService|operatingPeriodRef}} is deprecated from {{rml|2.2}} on. An individual {{TT:Doc|operatingPeriod}} for each {{TT:Doc|trainPart}} should be referenced instead. See ticket {{ticket|158}}. | |||
| | |example = | ||
Normal reference to the {{TT:Doc|operatingPeriod}} for 'daily': | |||
<rail:operatingPeriodRef ref="TGL"/> | |||
* See also | |||
:# [[TT:Midnight_overrun | How to indicate midnight overruns in {{rml|link=no}}]] | |||
| | * '''iRFP Dresden''': selection of examples for operationg periods in German | ||
:# {{external|https://www.irfp.de/download/railml_beispiel_verkehrstage.pdf|iRFP-Informationen und -Beispiel zu Verkehrstagen in {{rml|link=no}}|lang=DE|comment=by Dirk Bräuer, iRFP Dresden|date=May 2012}} | |||
|backHome = TT:elements | |||
}} | }} |
Latest revision as of 20:36, 22 January 2024
operatingPeriodRef
Scheme description / Schemenbeschreibung
Position of operatingPeriodRef in the XML-Tree / Position von operatingPeriodRef im XML-Baum
- Parent: <trainPart>
- Children: <specialService> (deprecated with version 2.2)
Multiplicity / Anzahl
Semantics / Bedeutung
The Element <operatingPeriodRef> is used for referencing the operatingPeriod for the trainPart.
Das Element <operatingPeriodRef> referenziert die zum trainPart gehörige Verkehrsperiode.
Please, be aware of the semantic constraint(s)!
Attributes of operatingPeriodRef / Attribute von operatingPeriodRef
- ref: This refers to the id attribute of the associated <operatingPeriod> element.
- xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?
- startDate (deprecated with version 2.2): This describes optional further restrictions of the operating period. Please, recognize the semantic constraint.
- endDate (deprecated with version 2.2): This describes optional further restrictions of the operating period. Please, recognize the semantic constraint.
Syntactic Constraints / Syntaktische Beschränkungen
- ref xs:IDREF, mandatory
- startDate xs:date, optional (deprecated with version 2.2); shall be lower or equal endDate if both are used.
- endDate xs:date, optional (deprecated with version 2.2); shall be higher or equal startDate if both are used.
Semantic Constraints / Semantische Beschränkungen
|
Best practice & Examples / Empfohlene Anwendung & Beispiele
Normal reference to the operatingPeriod for 'daily':
<rail:operatingPeriodRef ref="TGL"/>
- See also
- iRFP Dresden: selection of examples for operationg periods in German
- iRFP-Informationen und -Beispiel zu Verkehrstagen in railML® (external link, May 2012, 🇩🇪; by Dirk Bräuer, iRFP Dresden)
Notes / Anmerkungen
Child element specialService is deprecated from railML® 2.2 on. An individual operatingPeriod for each trainPart should be referenced instead. See ticket #158.
Open issues / Offene Punkte/Pendenzen
Not yet described. / Noch nicht beschrieben.