Skip to content

Commit

Permalink
added test for car re-use refs #14432, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 29, 2024
1 parent 127a314 commit b68d14c
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 0 deletions.
Empty file.
13 changes: 13 additions & 0 deletions tests/sumo/basic/person/riding/ride_reuse_car/input_routes.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="DEFAULT_VEHTYPE" sigma="0"/>
<trip id="v1" depart="triggered" departPos="0" from="WC" to="WC">
<stop edge="CE" triggered="person" endPos="50"/>
</trip>
<person id="p1" depart="0">
<ride from="WC" to="CE" lines="v1" arrivalPos="50"/>
<walk to="CE" arrivalPos="80"/>
<stop edge="CE" duration="100"/>
<walk to="CE" arrivalPos="48"/>
<ride from="CE" to="WC" lines="v1"/>
</person>
</routes>
1 change: 1 addition & 0 deletions tests/sumo/basic/person/riding/ride_reuse_car/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-step-log --no-duration-log --net-file=net2.net.xml -r=input_routes.rou.xml --tripinfo-output=tripinfos.xml
Empty file.
49 changes: 49 additions & 0 deletions tests/sumo/basic/person/riding/ride_reuse_car/tripinfos.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 09:08:48 by Eclipse SUMO sumo Version v1_19_0+1079-127a3146f9d
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_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
<pedestrian.model value="nonInteracting"/>
</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">
<personinfo id="p1" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="0.00" vehicle="v1" depart="0.00" arrival="54.00" arrivalPos="50.00" duration="54.00" routeLength="158.05" timeLoss="41.62"/>
<walk depart="54.00" departPos="50.00" arrival="76.00" arrivalPos="80.00" duration="22.00" routeLength="30.00" timeLoss="0.40" maxSpeed="1.39"/>
<stop duration="100.00" arrival="176.00" arrivalPos="80.00" actType="waiting"/>
<walk depart="176.00" departPos="80.00" arrival="200.00" arrivalPos="48.00" duration="24.00" routeLength="32.00" timeLoss="0.96" maxSpeed="1.39"/>
<ride waitingTime="1.00" vehicle="v1" depart="201.00" arrival="242.00" arrivalPos="91.95" duration="41.00" routeLength="343.54" timeLoss="16.28"/>
</personinfo>
<tripinfo id="v1" depart="0.00" departLane="WC_0" departPos="0.00" departSpeed="0.00" departDelay="0.00" arrival="242.00" arrivalLane="WC_1" arrivalPos="91.95" arrivalSpeed="13.89" duration="242.00" routeLength="501.59" waitingTime="44.00" waitingCount="2" stopTime="147.00" timeLoss="57.90" rerouteNo="1" devices="tripinfo_v1 routing_v1 person_v1" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
49 changes: 49 additions & 0 deletions tests/sumo/basic/person/riding/ride_reuse_car/tripinfos.sumo.meso
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Thu Sep 3 17:19:13 2020 by Eclipse SUMO sumo Version v1_6_0+1961-95c187100c
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="three_split.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
</output>
<time>
<end value="1000"/>
</time>
<processing>
<default.speeddev value="0"/>
<pedestrian.model value="nonInteracting"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="p1" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="0.00" vehicle="v1" depart="0.00" arrival="72.00" arrivalPos="500.00" duration="72.00" routeLength="1900.00" timeLoss="0.00"/>
</personinfo>
<tripinfo id="v1" depart="0.00" departLane="" departPos="0.00" departSpeed="27.80" departDelay="0.00" arrival="72.00" arrivalLane="" arrivalPos="500.00" arrivalSpeed="27.80" duration="72.00" routeLength="2000.00" waitingTime="0.00" waitingCount="0" stopTime="0.00" timeLoss="0.00" rerouteNo="0" devices="tripinfo_v1 person_v1" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
3 changes: 3 additions & 0 deletions tests/sumo/basic/person/riding/testsuite.sumo
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# person with a single ride
ride

# person riding to work and going back home in the same car
ride_reuse_car

# define rides that end at a busStop, parkingArea, etc.
ride_stoppingPlace

Expand Down

0 comments on commit b68d14c

Please sign in to comment.