TT:commercialTrainSection

From railML 3 Wiki
Revision as of 15:55, 13 March 2023 by RailML Coord Timetable (talk | contribs) (As discussed in the timetable developer group accepted the semcons on this page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Documentation

Syntax

Autoexport from the XML-Schema for element TT:commercialTrainSection of railML® version 3.3
    
Documentation The commercial train sections of a commercial train variant provide info about a part of the trains path.
Subschema timetable
Parents*

commercialTrainVariant

Children

additionalStopInfos (0..1), categoryRefs (0..1), freightFacilities (0..1), isCancelled (0..1), isOnRequest (0..1), passengerFacilities (0..1), range (0..1), transportServiceRef (0..1)

Attributes:
  • ordererRef: Reference to the organizational unit that ordered the train (optional; xs:IDREF),

  • sequenceNumber: Used to explicitly specify the order of sections within the enclosing commercialTrainVariant by providing ascending sequence numbers. (obligatory; xs:unsignedInt),

  • isEmpty: Trains marked with this flag are running empty and thus can be treated differently when rescheduling and dispatching. (optional; xs:boolean),

  • isPublic: Unless specified otherwise, all trains are considered public.
    Non-public trains, their schedules and other details must not be communicated to the open public. (optional; xs:boolean),

  • trainType: Allows classification of trains using an extendable enumeration. Mainly used to distinguish between passenger and freight trains. (optional; xs:string; patterns: other:w{2,})
Possible values:
  • EngineRun: Indicates that the train consists of a locomotive only
  • Goods: Indicates that the train is a freight train
  • Passenger: Indicates that the train is a passenger train,

  • id: the identifier of the object; this can be either of type xs:ID or UUID (obligatory; xs:ID); compare: Dev:Identities
*Notice:
Elements may have different parent elements. As a consequence they may be used in different contexts.
Please, consider this as well as a user of this wiki as when developing this documentation further.
Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.


 

Autoexport from the XML-Schema for element TT:commercialTrainSection of railML® version 3.2
    
Documentation The commercial train sections of a commercial train variant provide info about a part of the trains path.
Subschema timetable
Parents*

commercialTrainVariant

Children

additionalStopInfos (0..1), categoryRefs (0..1), freightFacilities (0..1), isCancelled (0..1), isOnRequest (0..1), passengerFacilities (0..1), range (0..1), transportServiceRef (0..1)

Attributes:
  • ordererRef: Reference to the organizational unit that ordered the train (optional; xs:string; patterns: (urn:uuid:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}),

  • isEmpty: Trains marked with this flag are running empty and thus can be treated differently when rescheduling and dispatching. (optional; xs:boolean),

  • isPublic: Unless specified otherwise, all trains are considered public.
    Non-public trains, their schedules and other details must not be communicated to the open public. (optional; xs:boolean),

  • trainType: Allows classification of trains using an extendable enumeration. Mainly used to distinguish between passenger and freight trains. (optional; xs:string; patterns: other:w{2,})
Possible values:
  • EngineRun: Indicates that the train consists of a locomotive only
  • Goods: Indicates that the train is a freight train
  • Passenger: Indicates that the train is a passenger train,

  • id: unique identifier (obligatory; xs:string; patterns: (urn:uuid:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}); compare: Dev:Identities
*Notice:
Elements may have different parent elements. As a consequence they may be used in different contexts.
Please, consider this as well as a user of this wiki as when developing this documentation further.
Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.


 

This element does not appear in railML® 3.1 within the TT subschema. It is available only in railML® 3.2. Do not hesitate to contact railML.org for further questions.


Changes 3.1→3.2

There exists an overview of all changes between railML® 3.1 and railML® 3.2 on page Dev:Changes/3.2.

Introduced with version 3.2.

Changes 3.2→3.3

There exists an overview of all changes between railML® 3.2 and railML® 3.3 on page Dev:Changes/3.3.

The attributes have been changed.

Semantics

Private-cloud-icon.png Semantic Constraint "TT:006":
 
The itinerary sections of a <commercialTrainVariant>, defined by the <commercialTrainSection>s and their respective <range>s, that are not <isCancelled> and not marked as <isOnRequest>, must be pairwise disjoint, except for their respective first and last <baseItineraryPoint>s.
 
Proposed on January 12th 2023
Approved on March 09th 2023
Discuss this semantic constraint
Please, recognize our guidelines on semantic constraints

Private-cloud-icon.png Semantic Constraint "TT:007":
 
The first(last) <baseItineraryPoint> of each <commercialTrainSection> within a <commercialTrainVariant> must either be the referenced <itinerary>'s first(last) <baseItineraryPoint>, or coincide with another section's last(first) <baseItineraryPoint>.
 
Proposed on January 12th 2023
Approved on March 09th 2023
Discuss this semantic constraint
Please, recognize our guidelines on semantic constraints

Best Practice / Examples

Additional Information

Notes

Open Issues