TT:operatingDay: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Example link added, minor changes, "shall" changed to "must" (on disjunctive operating days))
m (Small layout changes)
Line 1: Line 1:
{{elementDocu|
{{ElementDocu|
elementName = operatingDay
elementName = operatingDay
|semantics =
|semantics =
The Element {{TT:Doc|operatingDay}} gives a week based abstract description of an operating period for a normal day. Variations for certain types of days (e.g. public holidays) are dealt with in {{TT:Doc|operatingDayDeviance}}. Two different elements {{TT:Doc|operatingDay}} are valid at the same time. Therefore the {{attr|startDate}} and {{attr|endDate}} must be used to delimit different period parts.  
The Element {{TT:Tag|operatingDay}} gives a week based abstract description of an operating period for a normal day. Variations for certain types of days (e.g. public holidays) are dealt with in {{TT:Doc|operatingDayDeviance}}. Two different elements {{TT:Tag|operatingDay}} are valid at the same time. Therefore the {{Attr|startDate}} and {{Attr|endDate}} must be used to delimit different period parts.  


{{deu|Das Element {{TT:Doc|operatingDay}} gibt eine wochenbasierte Beschreibung der Verkehrsperiode für normale Tage. Besondere Tagestypen wie Feiertage werden im Unterelement {{TT:Doc|operatingDayDeviance}} behandelt. Zwei unterschiedliche Elemente {{TT:Doc|operatingDay}} gelten dabei gleichberechtigt. Sie müssen daher über {{attr|startDate}} und {{attr|endDate}} zeitlich nicht überlappend voneinander abgegrenzt werden.}}
{{Deu|Das Element {{TT:Tag|operatingDay}} gibt eine wochenbasierte Beschreibung der Verkehrsperiode für normale Tage. Besondere Tagestypen wie Feiertage werden im Unterelement {{TT:Tag|operatingDayDeviance}} behandelt. Zwei unterschiedliche Elemente {{TT:Tag|operatingDay}} gelten dabei gleichberechtigt. Sie müssen daher über {{Attr|startDate}} und {{Attr|endDate}} zeitlich nicht überlappend voneinander abgegrenzt werden.}}


|parent = {{TT:Doc|operatingPeriod}}
|parent = {{TT:Tag|operatingPeriod}}


|childs = {{TT:Doc|operatingDayDeviance}}
|childs = {{TT:Tag|operatingDayDeviance}}


|inheritedAttributes
|inheritedAttributes
Line 14: Line 14:
|ownAttributes =  
|ownAttributes =  


*{{attr|operatingCode}}: a 7-digit bitmask (0/1) for the days of a normal week, Monday to Sunday ({{xsdType|string}}, required)
*{{Attr|operatingCode}}: a 7-digit bitmask (0/1) for the days of a normal week, Monday to Sunday
*{{attr|onRequest}} {{vers|> 2.0}}: needed for "runs Monday to Friday and additionally Sunday on request" ({{xsdType|boolean}}, optional).
*{{Attr|onRequest}} {{Intro|2.0}}: needed for "runs Monday to Friday and additionally Sunday on request"
*{{attr|startDate}}: can be used to reduce the considered period ({{xsdType|date}}, optional).
*{{Attr|startDate}}: can be used to reduce the considered period
*{{attr|endDate}}: can be used to reduce the considered period ({{xsdType|date}}, optional).
*{{Attr|endDate}}: can be used to reduce the considered period
 
|constraints =
*{{Attr|operatingCode}} {{xsdType|string}}, mandatory
*{{Attr|onRequest}} {{xsdType|boolean}}, optional
*{{Attr|startDate}} {{xsdType|date}}, optional
*{{Attr|endDate}} {{xsdType|date}}, optional


|example =
|example =
Train is operating Monday to Saturday (with no exception on public holidays):
Train is operating Monday to Saturday (with no exception on public holidays):
   <rail:operatingPeriod id="op16" description="Monday - Saturday">
   <rail:operatingPeriod id="op16" description="Monday - Saturday">
  <rail:operatingDay operatingCode="1111110"/>
    <rail:operatingDay operatingCode="1111110"/>
   </rail:operatingPeriod>
   </rail:operatingPeriod>



Revision as of 16:28, 26 March 2012


operatingDay
 


Scheme description / Schemenbeschreibung

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

Multiplicity / Anzahl

[1..1]

Semantics / Bedeutung

The Element <operatingDay> gives a week based abstract description of an operating period for a normal day. Variations for certain types of days (e.g. public holidays) are dealt with in operatingDayDeviance. Two different elements <operatingDay> are valid at the same time. Therefore the startDate and endDate must be used to delimit different period parts.

Das Element <operatingDay> gibt eine wochenbasierte Beschreibung der Verkehrsperiode für normale Tage. Besondere Tagestypen wie Feiertage werden im Unterelement <operatingDayDeviance> behandelt. Zwei unterschiedliche Elemente <operatingDay> gelten dabei gleichberechtigt. Sie müssen daher über startDate und endDate zeitlich nicht überlappend voneinander abgegrenzt werden.

Attributes of operatingDay / Attribute von operatingDay

  • operatingCode: a 7-digit bitmask (0/1) for the days of a normal week, Monday to Sunday
  • onRequest (introduced with version 2.0): needed for "runs Monday to Friday and additionally Sunday on request"
  • startDate: can be used to reduce the considered period
  • endDate: can be used to reduce the considered period

Syntactic Constraints / Syntaktische Beschränkungen

Best practice & Examples / Empfohlene Anwendung & Beispiele

Train is operating Monday to Saturday (with no exception on public holidays):

 <rail:operatingPeriod id="op16" description="Monday - Saturday">
   <rail:operatingDay operatingCode="1111110"/>
 </rail:operatingPeriod>

see also

Notes / Anmerkungen

Not yet described. / Noch nicht beschrieben.

Open issues / Offene Punkte/Pendenzen

Not yet described. / Noch nicht beschrieben.