TT:operatingPeriodRef trainPart: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Updated using new templates (Vorlage:InheritRef, Vorlage:RailMLType))
(Updated using new template (Vorlage:InheritAnyAttribute))
Line 12: Line 12:


|inheritedAttributes =
|inheritedAttributes =
{{InheritRef
{{InheritRefAny
|attributeName = ref
|contextLink = {{TT:Tag|operatingPeriod}}
|contextLink = {{TT:Tag|operatingPeriod}}
|notes_en =  
|ref =
|ref_de =
|anyAttribute =
|anyAttribute_de =
}}
}}


|ownAttributes =
|ownAttributes =
* {{Attr|startDate}}: This describes optional further restrictions of the operating period. If not empty it has to be equal or later than the {{Attr|startDate}} of the referenced {{TT:Doc|timetablePeriod}}.
* {{Attr|startDate}}: This describes optional further restrictions of the operating period.


* {{Attr|endDate}}: This describes optional further restrictions of the operating period. If not empty it has to be equal or earlier than the {{Attr|endDate}} of the referenced {{TT:Doc|timetablePeriod}}.
* {{Attr|endDate}}: This describes optional further restrictions of the operating period.


|constraints =
|constraints =
* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory
* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory
* {{Attr|startDate}} {{XsdType|date}}, optional <br/> If not empty it has to be equal or later than the {{Attr|startDate}} of the referenced {{TT:Doc|timetablePeriod}}.
* {{Attr|endDate}} {{XsdType|date}}, optional <br/> If not empty it has to be equal or earlier than the {{Attr|endDate}} of the referenced {{TT:Doc|timetablePeriod}}.


|example =  
|example =  
Normal reference to the {{TT:Doc|operatingPeriod}} for 'daily':
Normal reference to the {{TT:Doc|operatingPeriod}} for 'daily':


* <rail:operatingPeriodRef ref="TGL"/>
<rail:operatingPeriodRef ref="TGL"/>


Same reference but restricted to certain period:
Same reference but restricted to certain period:


* <rail:operatingPeriodRef ref="TGL" startDate="2009-10-05" endDate="2009-10-16"/>
<rail:operatingPeriodRef ref="TGL" startDate="2009-10-05" endDate="2009-10-16"/>


|backHome = TT:elements
|backHome = TT:elements
}}
}}

Revision as of 13:25, 9 December 2011


operatingPeriodRef
 


Scheme description / Schemenbeschreibung

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

Multiplicity / Anzahl

[1..1]

Semantics / Bedeutung

The Element <operatingPeriodRef> is used for referencing the operatingPeriod for the trainPart.

Das Element <operatingPeriodRef> referenziert die zum trainPart gehörige Verkehrsperiode.

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: This describes optional further restrictions of the operating period.
  • endDate: This describes optional further restrictions of the operating period.

Syntactic Constraints / Syntaktische Beschränkungen

  • startDate xs:date, optional
    If not empty it has to be equal or later than the startDate of the referenced timetablePeriod.
  • endDate xs:date, optional
    If not empty it has to be equal or earlier than the endDate of the referenced timetablePeriod.

Best practice & Examples / Empfohlene Anwendung & Beispiele

Normal reference to the operatingPeriod for 'daily':

<rail:operatingPeriodRef ref="TGL"/>

Same reference but restricted to certain period:

<rail:operatingPeriodRef ref="TGL" startDate="2009-10-05" endDate="2009-10-16"/>

Notes / Anmerkungen

Not yet described. / Noch nicht beschrieben.

Open issues / Offene Punkte/Pendenzen

Not yet described. / Noch nicht beschrieben.