Skip to content

Commit

Permalink
added tests refs #21, #16131
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 5, 2025
1 parent 7cf211b commit 6ec163b
Show file tree
Hide file tree
Showing 11 changed files with 291 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:44:20 by Eclipse SUMO netedit Version v1_22_0+0009-8ee76f85240
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<parkingArea id="pa_0" lane="beg_0" startPos="100.00" endPos="160.00" roadsideCapacity="6"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:42:01 by Eclipse SUMO netedit Version v1_22_0+0009-8ee76f85240
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<!-- Vehicles, persons and containers (sorted by depart) -->
<flow id="f_0" begin="0.00" departPos="last" end="0.00" number="6">
<route edges="beg"/>
<stop parkingArea="pa_0" duration="60.00" parking="1"/>
</flow>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--no-step-log -e 360 --net-file=net2.net.xml
-r input_routes.rou.xml
-a input_additional.add.xml
--duration-log.statistics
--tripinfo-output tripinfos.xml
--stop-output stopinfos.xml
22 changes: 22 additions & 0 deletions tests/sumo/spec/departure/departPos/pos_last_stop/output.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Loading net-file from 'net2.net.xml' ... done (1ms).
Loading additional-files from 'input_additional.add.xml' ... done (0ms).
Loading route-files incrementally from 'input_routes.rou.xml'
Loading done.
Simulation version v1_22_0+0009-8ee76f85240 started with time: 0.00.
Simulation ended at time: 360.00.
Reason: The final simulation step has been reached.
Performance:
Duration: 0.00s
Real time factor: 360000
UPS: 499000.000000
Vehicles:
Inserted: 6
Running: 0
Waiting: 0
Statistics (avg of 6):
RouteLength: 19.10
Speed: 0.22
Duration: 83.17
WaitingTime: 0.00
TimeLoss: 9.56
DepartDelay: 0.00
22 changes: 22 additions & 0 deletions tests/sumo/spec/departure/departPos/pos_last_stop/output.sumo.meso
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Loading net-file from 'net2.net.xml' ... done (0ms).
Loading additional-files from 'input_additional.add.xml' ... done (0ms).
Loading route-files incrementally from 'input_routes.rou.xml'
Loading done.
Simulation version v1_22_0+0009-8ee76f85240 started with time: 0.00.
Simulation ended at time: 360.00.
Reason: The final simulation step has been reached.
Performance:
Duration: 0.00s
Real time factor: 360000
UPS: 475000.000000
Vehicles:
Inserted: 6
Running: 0
Waiting: 0
Statistics (avg of 6):
RouteLength: 500.00
Speed: 6.32
Duration: 79.17
WaitingTime: 0.00
TimeLoss: 60.83
DepartDelay: 2.67
52 changes: 52 additions & 0 deletions tests/sumo/spec/departure/departPos/pos_last_stop/stopinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:51:09 by Eclipse SUMO sumo Version v1_22_0+0009-8ee76f85240
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
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net2.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"/>
<stop-output value="stopinfos.xml"/>
</output>
<time>
<end value="360"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.statistics value="true"/>
<no-step-log value="true"/>
</report>
</sumoConfiguration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="f_0.0" type="DEFAULT_VEHTYPE" lane="beg_0" pos="160.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.1" type="DEFAULT_VEHTYPE" lane="beg_0" pos="150.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.2" type="DEFAULT_VEHTYPE" lane="beg_0" pos="140.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.3" type="DEFAULT_VEHTYPE" lane="beg_0" pos="130.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.4" type="DEFAULT_VEHTYPE" lane="beg_0" pos="120.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.5" type="DEFAULT_VEHTYPE" lane="beg_0" pos="110.00" parking="1" started="1.00" ended="61.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
</stops>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:51:44 by Eclipse SUMO sumo Version v1_22_0+0009-8ee76f85240
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
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net2.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"/>
<stop-output value="stopinfos.xml"/>
</output>
<time>
<end value="360"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.statistics value="true"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</sumoConfiguration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="f_0.0" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="3.60" ended="64.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.1" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="5.00" ended="65.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.2" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="6.40" ended="67.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.3" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="7.79" ended="68.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.4" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="9.19" ended="70.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="f_0.5" type="DEFAULT_VEHTYPE" edge="beg" pos="100.00" parking="1" started="10.60" ended="71.00" parkingArea="pa_0" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
</stops>
52 changes: 52 additions & 0 deletions tests/sumo/spec/departure/departPos/pos_last_stop/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:51:09 by Eclipse SUMO sumo Version v1_22_0+0009-8ee76f85240
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
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net2.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"/>
<stop-output value="stopinfos.xml"/>
</output>
<time>
<end value="360"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.statistics value="true"/>
<no-step-log value="true"/>
</report>
</sumoConfiguration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<tripinfo id="f_0.0" depart="0.00" departLane="beg_0" departPos="499.90" departSpeed="0.00" departDelay="0.00" arrival="79.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.28" duration="79.00" routeLength="0.10" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="6.26" rerouteNo="0" devices="tripinfo_f_0.0" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.1" depart="0.00" departLane="beg_0" departPos="492.30" departSpeed="0.00" departDelay="0.00" arrival="81.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.59" duration="81.00" routeLength="7.70" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="7.68" rerouteNo="0" devices="tripinfo_f_0.1" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.2" depart="0.00" departLane="beg_0" departPos="484.70" departSpeed="0.00" departDelay="0.00" arrival="82.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.60" duration="82.00" routeLength="15.30" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="8.82" rerouteNo="0" devices="tripinfo_f_0.2" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.3" depart="0.00" departLane="beg_0" departPos="477.10" departSpeed="0.00" departDelay="0.00" arrival="84.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.35" duration="84.00" routeLength="22.90" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="10.31" rerouteNo="0" devices="tripinfo_f_0.3" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.4" depart="0.00" departLane="beg_0" departPos="469.50" departSpeed="0.00" departDelay="0.00" arrival="86.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.48" duration="86.00" routeLength="30.50" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="11.40" rerouteNo="0" devices="tripinfo_f_0.4" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.5" depart="0.00" departLane="beg_0" departPos="461.90" departSpeed="0.00" departDelay="0.00" arrival="87.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.46" duration="87.00" routeLength="38.10" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="12.90" rerouteNo="0" devices="tripinfo_f_0.5" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-05 09:51:44 by Eclipse SUMO sumo Version v1_22_0+0009-8ee76f85240
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
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net2.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"/>
<stop-output value="stopinfos.xml"/>
</output>
<time>
<end value="360"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.statistics value="true"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</sumoConfiguration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<tripinfo id="f_0.0" depart="0.00" departLane="beg_0" departPos="0.00" departSpeed="27.80" departDelay="0.00" arrival="78.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="78.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="60.00" rerouteNo="0" devices="tripinfo_f_0.0" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.1" depart="0.00" departLane="beg_0" departPos="0.00" departSpeed="20.02" departDelay="0.00" arrival="80.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="80.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="61.40" rerouteNo="0" devices="tripinfo_f_0.1" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.2" depart="0.00" departLane="beg_0" departPos="0.00" departSpeed="15.64" departDelay="0.00" arrival="81.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="81.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="62.80" rerouteNo="0" devices="tripinfo_f_0.2" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.3" depart="4.00" departLane="beg_0" departPos="0.00" departSpeed="26.36" departDelay="4.00" arrival="83.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="79.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="60.20" rerouteNo="0" devices="tripinfo_f_0.3" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.4" depart="5.00" departLane="beg_0" departPos="0.00" departSpeed="23.85" departDelay="5.00" arrival="84.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="79.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="60.60" rerouteNo="0" devices="tripinfo_f_0.4" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="f_0.5" depart="7.00" departLane="beg_0" departPos="0.00" departSpeed="27.80" departDelay="7.00" arrival="85.00" arrivalLane="beg_0" arrivalPos="500.00" arrivalSpeed="27.80" duration="78.00" routeLength="500.00" waitingTime="0.00" waitingCount="0" stopTime="60.00" timeLoss="60.00" rerouteNo="0" devices="tripinfo_f_0.5" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
4 changes: 4 additions & 0 deletions tests/sumo/spec/departure/departPos/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ pos_last_speed_given
# departPos="last" departSpeed="max"
# (should insert with maximum vehicle speed
pos_last_speed_max

# departPos="last" should take into account stops
#
pos_last_stop

0 comments on commit 6ec163b

Please sign in to comment.