Skip to content

Commit

Permalink
chore: added mock data for graduated station speeds. (#82) (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawi-coding authored Jan 9, 2025
1 parent 5ce7db2 commit 22cf9d3
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<JourneyProfile JP_Status="Valid" JP_Version="1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../SFERA_3.0_custom.xsd">
<TrainIdentification>
<OTN_ID>
<Company>1085</Company>
<OperationalTrainNumber>T8</OperationalTrainNumber>
<StartDate>2025-01-01</StartDate>
</OTN_ID>
</TrainIdentification>
<SegmentProfileList SP_ID="T8_1" SP_VersionMajor="1" SP_VersionMinor="1" SP_Direction="Nominal">
<SP_Zone>
<IM_ID>0085</IM_ID>
</SP_Zone>
<TimingPointConstraints TP_StopSkipPass="Stopping_Point" TP_Information="None">
<TimingPointReference>
<TP_ID_Reference TP_ID="Bern"/>
</TimingPointReference>
</TimingPointConstraints>
<TimingPointConstraints TP_StopSkipPass="Passing_Point" TP_Information="None">
<TimingPointReference>
<TP_ID_Reference TP_ID="Wankdorf"/>
</TimingPointReference>
</TimingPointConstraints>
<TimingPointConstraints TP_StopSkipPass="Stopping_Point" TP_Information="None">
<TimingPointReference>
<TP_ID_Reference TP_ID="Burgdorf"/>
</TimingPointReference>
</TimingPointConstraints>
<TimingPointConstraints TP_StopSkipPass="Stopping_Point" TP_Information="None">
<TimingPointReference>
<TP_ID_Reference TP_ID="Olten"/>
</TimingPointReference>
</TimingPointConstraints>
<TrainCharacteristicsRef TC_ID="T8_1" TC_VersionMajor="1" TC_VersionMinor="1" location="0">
<TC_RU_ID>1185</TC_RU_ID>
</TrainCharacteristicsRef>
</SegmentProfileList>
</JourneyProfile>
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0"?>
<SegmentProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../SFERA_3.0_custom.xsd"
SP_ID="T8_1" SP_VersionMajor="1" SP_VersionMinor="1" SP_Length="2000" SP_Status="Valid">
<SP_Zone>
<IM_ID>0085</IM_ID>
</SP_Zone>
<SP_Points>
<TimingPoint TP_ID="Bern" location="500">
<TP_Name name="Bern"/>
<TAF_TAP_LocationReference>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3001</LocationPrimaryCode>
</TAF_TAP_LocationReference>
</TimingPoint>

<TimingPoint TP_ID="Wankdorf" location="1000">
<TP_Name name="Wankdorf"/>
<TAF_TAP_LocationReference>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3002</LocationPrimaryCode>
</TAF_TAP_LocationReference>
</TimingPoint>

<TimingPoint TP_ID="Burgdorf" location="1500">
<TP_Name name="Burgdorf"/>
<TAF_TAP_LocationReference>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3003</LocationPrimaryCode>
</TAF_TAP_LocationReference>
</TimingPoint>

<TimingPoint TP_ID="Olten" location="2000">
<TP_Name name="Olten"/>
<TAF_TAP_LocationReference>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3004</LocationPrimaryCode>
</TAF_TAP_LocationReference>
</TimingPoint>

</SP_Points>
<SP_Areas>
<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="BE"
TAF_TAP_location_type="station">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3001</LocationPrimaryCode>
</TAF_TAP_LocationIdent>
<TAF_TAP_LocationName language="de" messageString="Bern"/>
<TAF_TAP_Location_NSP name="stationSpeed">
<NetworkSpecificParameter name="xmlStationSpeed" value="
&lt;stationSpeed&gt;
&lt;v trainSeries=&quot;R&quot; brakeSeries=&quot;115&quot; speed=&quot;90&quot;/&gt;
&lt;/stationSpeed&gt;
"/>
<NetworkSpecificParameter name="xmlGraduatedSpeedInfo" value="
&lt;entries&gt;
&lt;entry roSpeed=&quot;75-70-60&quot; sSpeed=&quot;70-60/50&quot; text=&quot;Zusatzinformation A&quot;/&gt;
&lt;entry nSpeed=&quot;70/60&quot; text=&quot;Zusatzinformation B&quot;/&gt;
&lt;/entries&gt;
"/>
</TAF_TAP_Location_NSP>
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="WKD"
TAF_TAP_location_type="station">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3002</LocationPrimaryCode>
</TAF_TAP_LocationIdent>
<TAF_TAP_LocationName language="de" messageString="Wankdorf"/>
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="BDF"
TAF_TAP_location_type="station">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3003</LocationPrimaryCode>
</TAF_TAP_LocationIdent>
<TAF_TAP_LocationName language="de" messageString="Burgdorf"/>
<TAF_TAP_Location_NSP name="stationSpeed">
<NetworkSpecificParameter name="xmlStationSpeed" value="
&lt;stationSpeed&gt;
&lt;v trainSeries=&quot;R&quot; brakeSeries=&quot;115&quot; speed=&quot;80&quot;/&gt;
&lt;/stationSpeed&gt;
"/>
<NetworkSpecificParameter name="xmlGraduatedSpeedInfo" value="
&lt;entries&gt;
&lt;entry roSpeed=&quot;75-{70}/[60]&quot; text=&quot;Zusatzinformation A&quot;/&gt;
&lt;entry adSpeed=&quot;70&quot; text=&quot;Zusatzinformation B&quot;/&gt;
&lt;/entries&gt;
"/>
</TAF_TAP_Location_NSP>
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="OL"
TAF_TAP_location_type="station">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3004</LocationPrimaryCode>
</TAF_TAP_LocationIdent>
<TAF_TAP_LocationName language="de" messageString="Olten"/>
<TAF_TAP_Location_NSP name="stationSpeed">
<NetworkSpecificParameter name="xmlStationSpeed" value="
&lt;stationSpeed&gt;
&lt;v trainSeries=&quot;R&quot; brakeSeries=&quot;115&quot; speed=&quot;80&quot;/&gt;
&lt;/stationSpeed&gt;
"/>
<NetworkSpecificParameter name="xmlGraduatedSpeedInfo" value="
&lt;entries&gt;
&lt;entry nSpeed=&quot;80/70-60&quot; sSpeed=&quot;70-60/50&quot; text=&quot;Zusatzinformation A&quot;/&gt;
&lt;/entries&gt;
"/>
</TAF_TAP_Location_NSP>
</TAF_TAP_Location>
</SP_Areas>

<SP_ContextInformation>
<KilometreReferencePoint location="500">
<KM_Reference kmRef="30.2"/>
</KilometreReferencePoint>

<KilometreReferencePoint location="1000">
<KM_Reference kmRef="33.5"/>
</KilometreReferencePoint>

<KilometreReferencePoint location="1500">
<KM_Reference kmRef="54.7"/>
</KilometreReferencePoint>

<KilometreReferencePoint location="2000">
<KM_Reference kmRef="84.9"/>
</KilometreReferencePoint>
</SP_ContextInformation>
</SegmentProfile>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<TrainCharacteristics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../SFERA_3.0_custom.xsd"
TC_ID="T8_1" TC_VersionMajor="1" TC_VersionMinor="1">
<TC_RU_ID>1185</TC_RU_ID>
<TC_Features trainCategoryCode="R" brakedWeightPercentage="115">
</TC_Features>
</TrainCharacteristics>

0 comments on commit 22cf9d3

Please sign in to comment.