Skip to content

Commit

Permalink
added test refs #14358, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 26, 2024
1 parent 93eda40 commit e58e6de
Show file tree
Hide file tree
Showing 13 changed files with 407 additions and 0 deletions.
Empty file.
2 changes: 2 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/errors.sumo.meso
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Warning: Network contains internal links which are ignored. Vehicles will 'jump' across junctions and thus underestimate route lengths and travel times.
Warning: Vehicle 't1' aborted waiting for a train from which to split.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Wed 11 Dec 2019 01:20:27 PM CET by Eclipse SUMO netedit Version v1_4_0+0035-a7b6fee
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="/scr2/debug/6398/input_net.net.xml"/>
</input>
<output>
<output-file value="/scr2/debug/6398/input_net.net.xml"/>
</output>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.5"/>
<rectangular-lane-cut value="false"/>
</junctions>
<pedestrian>
<walkingareas value="false"/>
</pedestrian>
<netedit>
<additional-files value="/scr2/debug/6398/input_additional.add.xml"/>
</netedit>
<report>
<aggregate-warnings value="5"/>
</report>
</configuration>
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<busStop id="B" lane="b_0" startPos="50.00" endPos="250.00"/>
</additional>
53 changes: 53 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/input_routes.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Wed 11 Dec 2019 01:23:20 PM CET by Eclipse SUMO netedit Version v1_4_0+0035-a7b6fee
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="input_net.net.xml"/>
</input>
<output>
<output-file value="input_net.net.xml"/>
</output>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.5"/>
<rectangular-lane-cut value="false"/>
</junctions>
<pedestrian>
<walkingareas value="false"/>
</pedestrian>
<netedit>
<additional-files value="input_additional.add.xml"/>
<route-files value="/scr2/debug/6398/input_routes.rou.xml"/>
</netedit>
<report>
<aggregate-warnings value="5"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="train" vClass="rail"/>
<vType id="splitTrain" vClass="rail" length="50"/>
<trip id="t0" type="train" depart="0.00" from="a" to="c">
<stop busStop="B" duration="60.00" split="t1"/>
</trip>
<trip id="t1" type="splitTrain" depart="split" departPos="splitFront" from="b" to="e">
<stop busStop="B" duration="60.00"/>
</trip>
</routes>
81 changes: 81 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Wed 11 Dec 2019 01:19:33 PM CET by Eclipse SUMO netedit Version v1_4_0+0035-a7b6fee
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<new value="true"/>
</input>
<output>
<output-file value="/scr2/debug/6398/input_net.net.xml"/>
</output>
<processing>
<offset.disable-normalization value="true"/>
</processing>
<report>
<aggregate-warnings value="5"/>
</report>
</configuration>
-->

<net version="1.3" junctionCornerDetail="5" limitTurnSpeed="5.50" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="0.00,0.00" convBoundary="-100.00,-100.00,600.00,0.00" origBoundary="10000000000.00,10000000000.00,-10000000000.00,-10000000000.00" projParameter="!"/>

<edge id=":gneJ1_0" function="internal">
<lane id=":gneJ1_0_0" index="0" allow="rail" speed="13.89" length="10.19" shape="92.60,-3.70 95.23,-2.18 97.04,-1.01 98.95,-0.26 101.88,0.00"/>
</edge>
<edge id=":gneJ1_1" function="internal">
<lane id=":gneJ1_1_0" index="0" allow="rail" speed="13.89" length="10.16" shape="91.72,0.00 101.88,0.00"/>
</edge>
<edge id=":gneJ2_0" function="internal">
<lane id=":gneJ2_0_0" index="0" allow="rail" speed="13.89" length="10.19" shape="398.12,0.00 401.05,-0.26 402.96,-1.01 404.77,-2.18 407.40,-3.70"/>
</edge>
<edge id=":gneJ2_1" function="internal">
<lane id=":gneJ2_1_0" index="0" allow="rail" speed="13.89" length="10.16" shape="398.12,0.00 408.28,0.00"/>
</edge>

<edge id="a" from="gneJ0" to="gneJ1" priority="-1" spreadType="center">
<lane id="a_0" index="0" allow="rail" speed="13.89" length="191.72" shape="-100.00,0.00 91.72,0.00"/>
</edge>
<edge id="b" from="gneJ1" to="gneJ2" priority="-1" spreadType="center">
<lane id="b_0" index="0" allow="rail" speed="13.89" length="296.24" shape="101.88,0.00 398.12,0.00"/>
</edge>
<edge id="c" from="gneJ2" to="gneJ3" priority="-1" spreadType="center">
<lane id="c_0" index="0" allow="rail" speed="13.89" length="191.72" shape="408.28,0.00 600.00,0.00"/>
</edge>
<edge id="d" from="gneJ4" to="gneJ1" priority="-1" spreadType="center">
<lane id="d_0" index="0" allow="rail" speed="13.89" length="215.33" shape="-100.00,-100.00 92.60,-3.70"/>
</edge>
<edge id="e" from="gneJ2" to="gneJ5" priority="-1" spreadType="center">
<lane id="e_0" index="0" allow="rail" speed="13.89" length="215.33" shape="407.40,-3.70 600.00,-100.00"/>
</edge>

<junction id="gneJ0" type="dead_end" x="-100.00" y="0.00" incLanes="" intLanes="" shape="-100.00,1.60 -100.00,-1.60"/>
<junction id="gneJ1" type="priority" x="100.00" y="0.00" incLanes="d_0 a_0" intLanes=":gneJ1_0_0 :gneJ1_1_0" shape="101.88,1.60 101.88,-1.60 98.52,-2.06 97.41,-2.59 96.34,-3.30 95.06,-4.15 93.31,-5.13 91.88,-2.27 91.72,-1.60 91.72,1.60">
<request index="0" response="00" foes="10" cont="0"/>
<request index="1" response="01" foes="01" cont="0"/>
</junction>
<junction id="gneJ2" type="priority" x="400.00" y="0.00" incLanes="b_0" intLanes=":gneJ2_0_0 :gneJ2_1_0" shape="408.28,1.60 408.28,-1.60 408.12,-2.27 406.69,-5.13 404.94,-4.15 403.66,-3.30 402.59,-2.59 401.48,-2.06 400.08,-1.72 398.12,-1.60 398.12,1.60">
<request index="0" response="00" foes="00" cont="0"/>
<request index="1" response="00" foes="00" cont="0"/>
</junction>
<junction id="gneJ3" type="dead_end" x="600.00" y="0.00" incLanes="c_0" intLanes="" shape="600.00,-1.60 600.00,1.60"/>
<junction id="gneJ4" type="dead_end" x="-100.00" y="-100.00" incLanes="" intLanes="" shape="-100.72,-98.57 -99.28,-101.43"/>
<junction id="gneJ5" type="dead_end" x="600.00" y="-100.00" incLanes="e_0" intLanes="" shape="599.28,-101.43 600.72,-98.57"/>

<connection from="a" to="b" fromLane="0" toLane="0" via=":gneJ1_1_0" dir="s" state="M"/>
<connection from="b" to="e" fromLane="0" toLane="0" via=":gneJ2_0_0" dir="R" state="M"/>
<connection from="b" to="c" fromLane="0" toLane="0" via=":gneJ2_1_0" dir="s" state="M"/>
<connection from="d" to="b" fromLane="0" toLane="0" via=":gneJ1_0_0" dir="s" state="M"/>

<connection from=":gneJ1_0" to="b" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":gneJ1_1" to="b" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":gneJ2_0" to="e" fromLane="0" toLane="0" dir="R" state="M"/>
<connection from=":gneJ2_1" to="c" fromLane="0" toLane="0" dir="s" state="M"/>

</net>
4 changes: 4 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log --net-file=net.net.xml --routes=input_routes.rou.xml
-a input_additional.add.xml
--tripinfo-output tripinfos.xml
--stop-output stopinfos.xml
Empty file.
37 changes: 37 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/railsignalblocks.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri Dec 13 09:46:40 2019 by Eclipse SUMO Version v1_4_0+0075-5616062
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<railsignal-block-output>
</railsignal-block-output>
45 changes: 45 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/stopinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-26 13:32:59 by Eclipse SUMO sumo Version v1_19_0+1016-9b5e9c3
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="t0" type="train@t0" lane="b_0" pos="195.00" parking="0" started="55.00" ended="115.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0" busStop="B" split="t1"/>
<stopinfo id="t1" type="splitTrain" lane="b_0" pos="250.00" parking="0" started="56.00" ended="116.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0" busStop="B"/>
</stops>
48 changes: 48 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/stopinfos.sumo.meso
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-03-22 17:17:53 by Eclipse SUMO sumo Version v1_16_0+1570-ec89ba0
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</configuration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="t0" type="train" edge="b" pos="197.49" parking="0" started="28.02" ended="96.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0" busStop="B" split="t1"/>
</stops>
45 changes: 45 additions & 0 deletions tests/sumo/rail/portion_working/splitFront/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-26 13:32:59 by Eclipse SUMO sumo Version v1_19_0+1016-9b5e9c3
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<railsignal-block-output value="railsignal_blocks.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<tripinfo id="t1" depart="55.00" departLane="b_0" departPos="250.00" departSpeed="0.00" departDelay="0.00" arrival="162.00" arrivalLane="e_0" arrivalPos="215.33" arrivalSpeed="11.75" duration="107.00" routeLength="271.76" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="26.70" rerouteNo="1" devices="tripinfo_t1 routing_t1" vType="splitTrain" speedFactor="1.00" vaporized=""/>
<tripinfo id="t0" depart="0.00" departLane="a_0" departPos="135.10" departSpeed="0.00" departDelay="0.00" arrival="165.00" arrivalLane="c_0" arrivalPos="191.72" arrivalSpeed="12.25" duration="165.00" routeLength="564.90" waitingTime="2.00" waitingCount="1" stopTime="60.00" timeLoss="60.15" rerouteNo="0" devices="tripinfo_t0 routing_t0" vType="train@t0" speedFactor="1.00" vaporized=""/>
</tripinfos>

0 comments on commit e58e6de

Please sign in to comment.