Dev:Usage of the track between the stations

From railML 2 Wiki
Jump to navigation Jump to search

Possible values: Passenger, Freight

Sub-example 1: Passenger

If railway <track> has <macroscopicNode> children at its beginning and end AND <macroscopicNode> elements refer to ocps of type “station” AND <track> has no <crossSections> AND <track>’s type is “main” then this track is a track “between” the station. If both <macroscopicNode> children of the <track> are of “passenger” traffic type AND this is a track “between” the stations then then this track has “passenger” usage.

  <infrastructure id="inf01">
    <tracks>
      <track id="tr01" name="track a02" type="mainTrack" mainDir="none">
        <trackTopology>
          <trackBegin pos="0" id="tr01_tb">
            <macroscopicNode ocpRef="ocp01"/>
          </trackBegin>
          <trackEnd pos="500" id="tr01_te">
            <macroscopicNode ocpRef="ocp02"/>
          </trackEnd>
        </trackTopology>
      </track>
    </tracks>
    
    <operationControlPoints>
      <ocp id="ocp01" name="Bf Cstadt" xml:lang="de" 
           type="operationalName">
        <propOperational trafficType="passenger"/>
      </ocp>
      <ocp id="ocp02" name="Bf Arnau" xml:lang="de" type="operationalName">
        <propOperational trafficType="passenger"/>
      </ocp>
    </operationControlPoints>
  </infrastructure>

Sub-example 2: Freight

If railway <track> has <macroscopicNode> children at its beginning and end AND <macroscopicNode> elements refer to ocps of type “station” AND <track> has no <crossSections> AND <track>’s type is “main” then this track is a track “between” the station. If both <macroscopicNode> children of the <track> are of “freight” traffic type AND this is a track “between” the stations then then this track has “freight” usage.

  <infrastructure id="inf01">
    <tracks>
      <track id="tr01" name="track a02" type="mainTrack" mainDir="none">
        <trackTopology>
          <trackBegin pos="0" id="tr01_tb">
            <macroscopicNode ocpRef="ocp01"/>
          </trackBegin>
          <trackEnd pos="500" id="tr01_te">
            <macroscopicNode ocpRef="ocp02"/>
          </trackEnd>
        </trackTopology>
      </track>
    </tracks>
    
    <operationControlPoints>
      <ocp id="ocp01" name="Bf Cstadt" xml:lang="de" 
           type="operationalName">
        <propOperational trafficType="freight"/>
      </ocp>
      <ocp id="ocp02" name="Bf Arnau" xml:lang="de" type="operationalName">
        <propOperational trafficType="freight"/>
      </ocp>
    </operationControlPoints>
  </infrastructure>