TT:times ocpTT ocpsTT patternTrainPart

From railML 2 Wiki
Jump to navigation Jump to search


times
 


Schema description / Schemabeschreibung

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

  • Parent: <ocpTT>
  • Children: None

Multiplicity / Anzahl

[0..∞]

Semantics / Bedeutung

The Element <times> describes arrival and departure times of a train with their scope.

Das Element <times> beschreibt Ankunfts- und Abfahrtszeiten eines Zuges und ihre Interpretation.
Please, be aware of the semantic constraint(s)!

Attributes of times / Attribute von times

Possible values are:
  • actual recorded arrival and/or departure times of a currently running or already driven train
  • calculated arrival and/or departure times from a simulation tool
  • published arrival and/or departure times that the passengers get on written sheets or online
  • scheduled arrival and/or departure times for operational purposes
  • earliest acceptable arrival and/or departure time (used to express a wish of a customer at a very early planning stage of a new timetable)
  • latest acceptable arrival and/or departure time (used to express a wish of a customer at a very early planning stage of a new timetable)
  • expected (introduced with version 2.5) forecasted arrival and/or departure times based on realtime data
  • other:anything: Any value that does not fit any value from the previous enumeration list, starting with 'other:' followed by at least two letters and/or digits. Please see the section New enumeration value in Dev:UsingAny for more information.
🗒️ Not to be confused with <train>@scope, that distinguishes different paths / alternative slots of a train.  
🗒️ Not to be confused with <train>@processStatus, that describes the scope in relation to a process of train path ordering.  
  • arrival: Moment at which the train ends its movement and gets to a halt at the parent <ocpTT>; usually called arrival time.
    • If this attribute is set at the first <ocpTT> of a <trainPart> that is also the first of the <trainPartSequence> of all <train>s it belongs to, it shall describe an "arrival from outside of the scope of the railML® file": It expresses that the train arrives at that first <ocpTT> at the given time, but the railML® file does not express from where the train arrives nor whether it arrives as a train movement at all or rather as a shunting movement.
  • departure: departure or run-through (passing) time;
    • normally specified at all except the very last station of the last trainPart (section) of a train:
    • If this attribute is set at the last <ocpTT> of a <trainPart> that is also the last of the <trainPartSequence> of all <train>s it belongs to, it shall describe "departure to outside of the scope of the railML® file": It expresses that the train departs at that last <ocpTT> at the given time, but the railML® file does not express to where the train departs nor whether it departs as a train movement at all or rather as a shunting movement.
  • xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?
    (introduced with version 2.2)

Syntactic Constraints / Syntaktische Beschränkungen

Not yet described. / Noch nicht beschrieben.

Semantic Constraints / Semantische Beschränkungen

Private-cloud-icon.png Semantic Constraint "TT:012":
 
<operatingPeriod> for <trainPart> with actual <times> data
 
When @scope='actual' is used, then the operating period and/or timetable period specified at the trainpart level shall refer to only one operating day. Like this the operating day to which the actual times refer is defined.
Wenn @scope= 'actual' verwendet wird, bezieht sich die operating period und/oder timetable period des train(part) auf nur einen einzelnen Betriebstag. Es muss so festgelegt werden, auf welchen Betriebstag sich die erfassten Ist-Zeiten beziehen.
 
Proposed on June 19th 2019
Approved on June 2nd 2022
FIXME Forum missing

Please, recognize our guidelines on semantic constraints 

Private-cloud-icon.png Semantic Constraint "TT:014":
 
No arrival <times> at passing <ocpTT>
 
@arrival is not to be specified if the attribute ocpType of the parent <ocpTT> has the value pass - use departure for run-through (passing) times; This is in line with the definition of @arrival as the moment at which the train ends its movement and gets to a halt at the parent <ocpTT>.
 
Proposed on June 19th 2019
Approved on June 2nd 2022
FIXME Forum missing

Please, recognize our guidelines on semantic constraints 

Private-cloud-icon.png Semantic Constraint "TT:015":
 
Consistency of arrival / departure <times> for consecutive <trainPart> elements
 
Arrival times at the common operating point of two consecutive <patternTrainPart>'s of the same <patternTrain> must not contradict each other. This can be implemented either
- by only the preceding <patternTrainPart> having arrival times while the succeeding <patternTrainPart> does not at this operating point or
- by both <trainPart>'s having identical arrival times.


These rules apply to the arrival times in each of the specified @scope's.

 
Proposed on June 19th 2019
Approved on June 2nd 2022
https://www.railml.org/forum/index.php?t=msg&th=1017&start=0&

Please, recognize our guidelines on semantic constraints 

Private-cloud-icon.png Semantic Constraint "TT:016":
 
Departure times at the common operating point of two consecutive <patternTrainPart>'s of the same <patternTrain> must not contradict each other. This can be implemented either
- by the preceding <patternTrainPart> having no departure times and only the succeeding <patternTrainPart> specifying them at this operating point or
- by both <patternTrainPart>'s having identical departure times.


These rules apply to the departure times in each of the specified @scope's.

 
Proposed on October 09th 2020
Approved on June 2nd 2022
https://www.railml.org/forum/index.php?t=msg&th=1017&start=0&

Please, recognize our guidelines on semantic constraints 

Private-cloud-icon.png Semantic Constraint "TT:020":
 
Usage of @scope attribute in <times>
 
No two attributes //<times>/@scope of the same enclosing <ocpTT> element shall have the same value.
 
Proposed on April 07th 2025
Approved on December 19th 2024
https://www.railml.org/forum/index.php?t=msg&th=1013&start=0&

Please, recognize our guidelines on semantic constraints 

Best practice & Examples / Empfohlene Anwendung & Beispiele

@scope 'earliest' and 'latest'

The values 'earliest' and 'latest' of the attribute @scope is specifically NOT intended to be used for encoding supplement times. For encoding supplement times the element <runTimes> is intended. <runTimes> provides the attributes @operationalReserve, @minimalTime, @additionalReserve.

Die Werte 'earliest' und 'latest' des Attributs @scope ist ausdrücklich NICHT für die Kodierung von Fahrzeitpuffern gedacht sind. Für die Kodierung von Fahrzeitpuffern ist das Element <runTimes> vorgesehen. <runTimes> stellt dafür die Attribute @operationalReserve, @minimalTime, @additionalReserve bereit.

Semantic constraint TT:020

The semantic constraint TT:020 ensures that no contradictory information can be provided. For example, it ensures that only a single 'scheduled' departure time is provided.

Mit der semantischen Beschränkung TT:020 wird sichergestellt, keine sich widersprechenden Informationen angegeben werden können. Beispielsweise wird sichergestellt, dass nur eine geplante also 'scheduled' Abfahrtszeit angegeben wird.

Valid:

<times scope="scheduled" arrival="10:05:15" departure="10:07:00"/>
<times scope="published" arrival="10:05:00" departure="10:08:00"/>

Invalid:

<times scope="scheduled" arrival="10:05:15" departure="10:07:00"/>
<times scope="scheduled" arrival="10:05:30" departure="10:06:45"/>
<times scope="published" arrival="10:05:00" departure="10:08:00"/>

Also invalid:

<times scope="scheduled" arrival="10:05:15"/>
<times scope="scheduled" departure="10:07:00"/>
<times scope="published" arrival="10:05:00" departure="10:08:00"/>

Notes / Anmerkungen

Not yet described. / Noch nicht beschrieben.

Open issues / Offene Punkte/Pendenzen

Not yet described. / Noch nicht beschrieben.