Skip to content

Commit

Permalink
added tests refs #21, #8468
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 2, 2025
1 parent dc6f092 commit 67b5704
Show file tree
Hide file tree
Showing 10 changed files with 913 additions and 0 deletions.
Empty file.
Empty file.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<routes>
<vehicle id="car" depart="0">
<route edges="SC CN"/>
<stop edge="CN" endPos="-50" duration="5"/>
</vehicle>

<person id="person0" depart="triggered">
<ride from="SC" to="CN" lines="car"/>
<stop duration="0"/>
<walk to="NC"/>
</person>

</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log --net-file=net2.net.xml -r=input_routes.rou.xml
--tripinfo-output=tripinfos.xml
--fcd-output fcd.xml
--device.fcd.probability 0
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-01-02 10:50:05 by Eclipse SUMO sumo Version v1_21_0+1603-94d7ad0ae98
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"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
<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>
<fcd_device>
<device.fcd.probability value="0"/>
</fcd_device>
</sumoConfiguration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<tripinfo id="car" depart="0.00" departLane="SC_0" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="30.00" arrivalLane="CN_0" arrivalPos="91.95" arrivalSpeed="13.25" duration="30.00" routeLength="194.90" waitingTime="0.00" waitingCount="0" stopTime="5.00" timeLoss="10.42" rerouteNo="0" devices="tripinfo_car person_car" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<personinfo id="person0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="120.00" waitingTime="0.00" timeLoss="75.47" traveltime="120.00">
<ride waitingTime="0.00" vehicle="car" depart="0.00" arrival="19.00" arrivalPos="41.95" duration="19.00" routeLength="144.90" timeLoss="7.57"/>
<stop duration="0.00" arrival="19.00" arrivalPos="91.95" actType="waiting"/>
<walk depart="19.00" departPos="91.95" arrival="120.00" arrivalPos="45.98" duration="101.00" routeLength="45.98" timeLoss="67.90" maxSpeed="1.39"/>
</personinfo>
</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-01-02 10:51:12 by Eclipse SUMO sumo Version v1_21_0+1603-94d7ad0ae98
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"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
<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>
<fcd_device>
<device.fcd.probability value="0"/>
</fcd_device>
<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="car" depart="0.00" departLane="SC_0" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="19.00" arrivalLane="CN_0" arrivalPos="91.95" arrivalSpeed="7.91" duration="19.00" routeLength="183.90" waitingTime="0.00" waitingCount="0" stopTime="5.00" timeLoss="5.00" rerouteNo="0" devices="tripinfo_car person_car" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<personinfo id="person0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="109.00" waitingTime="0.00" timeLoss="67.90" traveltime="108.00">
<ride waitingTime="0.00" vehicle="car" depart="0.00" arrival="7.00" arrivalPos="0.00" duration="7.00" routeLength="91.95" timeLoss="0.00"/>
<stop duration="1.00" arrival="8.00" arrivalPos="91.95" actType="waiting"/>
<walk depart="8.00" departPos="91.95" arrival="109.00" arrivalPos="45.98" duration="101.00" routeLength="45.98" timeLoss="67.90" maxSpeed="1.39"/>
</personinfo>
</tripinfos>
3 changes: 3 additions & 0 deletions tests/sumo/basic/person/riding/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ three_trainStops_at_one_edge
# person rides and then stops
ride_and_stop

# a person rides to an unspecified arrivalPos and this must be reflected in the position of the subsequent stop.
ride_unspecifiedArrival_and_stop

# person rides and exits the vehicle with some tolerance
ride_and_stop_tolerance

Expand Down

0 comments on commit 67b5704

Please sign in to comment.