Skip to content

Commit

Permalink
added jump test refs #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 29, 2024
1 parent b2c9e4d commit 6e172f8
Show file tree
Hide file tree
Showing 8 changed files with 165 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sumo/extended/stops/jumps/testsuite.sumo
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# define an explicit jump (disconnect) in the route
trip_jump

# define jump as a waypoint
trip_jump_waypoint

# define an explicit jump (disconnect) in the route
trip_jump_end

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-12-09 12:43:57 by Eclipse SUMO netedit Version v1_15_0+0917-249760d
-->

<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) -->
<trip id="v0" depart="0.00">
<stop busStop="bs_0" duration="5"/>
<stop busStop="bs_1" speed="10" jump="10"/>
<stop busStop="bs_2" duration="5"/>
<stop busStop="bs_3" duration="5"/>
</trip>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--net-file=net2.net.xml --route-files=input_trips.trips.xml
--vehroute-output vehroutes.xml
--tripinfo-output tripinfos.xml
-a input_additional.add.xml
--no-step-log
Empty file.
42 changes: 42 additions & 0 deletions tests/sumo/extended/stops/jumps/trip_jump_waypoint/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-29 16:58:20 by Eclipse SUMO sumo Version v1_19_0+1103-b2c9e4d4a7d
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="net2.net.xml"/>
<route-files value="input_trips.trips.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<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="v0" depart="0.00" departLane="E0_0" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="81.00" arrivalLane="E5_0" arrivalPos="100.00" arrivalSpeed="13.30" duration="81.00" routeLength="595.30" waitingTime="1.00" waitingCount="1" stopTime="15.00" timeLoss="17.54" rerouteNo="1" devices="vehroute_v0 tripinfo_v0 routing_v0" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
49 changes: 49 additions & 0 deletions tests/sumo/extended/stops/jumps/trip_jump_waypoint/vehroutes.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-29 16:58:20 by Eclipse SUMO sumo Version v1_19_0+1103-b2c9e4d4a7d
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="net2.net.xml"/>
<route-files value="input_trips.trips.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="v0" depart="0.00" arrival="81.00">
<route edges="E0 E1 E2 E3 E4 E5"/>
<stop busStop="bs_0" duration="5.00"/>
<stop busStop="bs_1" speed="10.00" jump="10.00"/>
<stop busStop="bs_2" duration="5.00"/>
<stop busStop="bs_3" duration="5.00"/>
</vehicle>

</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-12-10 08:02:50 by Eclipse SUMO sumo Version v1_15_0+0936-fce21cd
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="net2.net.xml"/>
<route-files value="input_trips.trips.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vehicle id="v0" depart="0.00" arrival="64.00">
<route edges="E0 E1 E2 E3 E4 E5"/>
<stop busStop="bs_0" duration="5.00"/>
<stop busStop="bs_1" duration="5.00" jump="10.00"/>
<stop busStop="bs_2" duration="5.00"/>
<stop busStop="bs_3" duration="5.00"/>
</vehicle>

</routes>

0 comments on commit 6e172f8

Please sign in to comment.