Skip to content

Commit

Permalink
added taxi test. refs #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Aug 28, 2024
1 parent c25c0c8 commit 798d5aa
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-28 13:54:06 by Eclipse SUMO sumo Version v1_20_0+1753-8d7e5fec371
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<taxi_device>
<device.taxi.dispatch-algorithm value="routeExtension"/>
<device.taxi.dispatch-algorithm.output value="dispatchinfos.xml"/>
</taxi_device>
</sumoConfiguration>
-->

<DispatchInfo>
<dispatchShared time="0.00" id="trip_0" persons="p.0" sharingPersons="p.0 p.1 p.2 p.3 p.4 p.0 p.4 p.3 p.2 p.1" type="routeExtension"/>
</DispatchInfo>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Vehicle 'trip_0' aborted waiting for a person that will never come.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="taxi_large" personCapacity="8" vClass="taxi" length="8">
<param key="has.taxi.device" value="true"/>
</vType>

<trip id="trip_0" type="taxi_large" depart="0.00" from="A0B0" to="B0C0">
<stop lane="A0B0_1" triggered="person"/>
</trip>

<personFlow id="p" number="5" begin="0.00" end="0">
<ride from="B2C2" to="A0B0" lines="taxi"/>
</personFlow>

</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--no-step-log --no-duration-log --net-file=net.net.xml
-r input_routes.rou.xml
--tripinfo-output tripinfos.xml
--tripinfo-output.write-unfinished
--device.taxi.dispatch-algorithm routeExtension
--device.taxi.dispatch-algorithm.output dispatchinfos.xml
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-28 13:53:29 by Eclipse SUMO sumo Version v1_20_0+1753-8d7e5fec371
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<taxi_device>
<device.taxi.dispatch-algorithm value="routeExtension"/>
</taxi_device>
</sumoConfiguration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="p.0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="233.00" waitingTime="51.00" timeLoss="21.39" traveltime="182.00">
<ride waitingTime="51.00" vehicle="trip_0" depart="51.00" arrival="233.00" arrivalPos="287.60" duration="182.00" routeLength="1367.28" timeLoss="21.39"/>
</personinfo>
<personinfo id="p.1" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="234.00" waitingTime="51.00" timeLoss="21.39" traveltime="183.00">
<ride waitingTime="51.00" vehicle="trip_0" depart="51.00" arrival="234.00" arrivalPos="287.60" duration="183.00" routeLength="1367.28" timeLoss="21.39"/>
</personinfo>
<personinfo id="p.2" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="234.00" waitingTime="51.00" timeLoss="21.39" traveltime="183.00">
<ride waitingTime="51.00" vehicle="trip_0" depart="51.00" arrival="234.00" arrivalPos="287.60" duration="183.00" routeLength="1367.28" timeLoss="21.39"/>
</personinfo>
<personinfo id="p.3" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="235.00" waitingTime="51.00" timeLoss="21.39" traveltime="184.00">
<ride waitingTime="51.00" vehicle="trip_0" depart="51.00" arrival="235.00" arrivalPos="287.60" duration="184.00" routeLength="1367.23" timeLoss="21.39"/>
</personinfo>
<personinfo id="p.4" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="235.00" waitingTime="51.00" timeLoss="21.39" traveltime="184.00">
<ride waitingTime="51.00" vehicle="trip_0" depart="51.00" arrival="235.00" arrivalPos="287.60" duration="184.00" routeLength="1367.23" timeLoss="21.39"/>
</personinfo>
<tripinfo id="trip_0" depart="0.00" departLane="A0B0_1" departPos="8.10" departSpeed="0.00" departDelay="0.00" arrival="-1.00" arrivalLane="" arrivalPos="-1.00" arrivalSpeed="-1.00" duration="238.00" routeLength="1863.54" waitingTime="2.00" waitingCount="1" stopTime="68.00" timeLoss="31.49" rerouteNo="3" devices="tripinfo_trip_0 routing_trip_0 taxi_trip_0 person_trip_0" vType="taxi_large" speedFactor="1.00" vaporized="">
<taxi customers="5" occupiedDistance="1367.28" occupiedTime="125.00"/>
</tripinfo>
</tripinfos>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-26 15:32:41 by Eclipse SUMO sumo Version v1_20_0+1721-016cfd09667
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</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>
</sumoConfiguration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="p.0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="122.00" waitingTime="34.00" timeLoss="0.00" traveltime="88.00">
<ride waitingTime="34.00" vehicle="trip_0" depart="34.00" arrival="122.00" arrivalPos="191.73" duration="88.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<personinfo id="p.1" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="291.00" waitingTime="202.00" timeLoss="0.00" traveltime="89.00">
<ride waitingTime="202.00" vehicle="trip_0" depart="202.00" arrival="291.00" arrivalPos="191.73" duration="89.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<personinfo id="p.2" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="459.00" waitingTime="370.00" timeLoss="0.00" traveltime="89.00">
<ride waitingTime="370.00" vehicle="trip_0" depart="370.00" arrival="459.00" arrivalPos="191.73" duration="89.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<personinfo id="p.3" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="627.00" waitingTime="538.00" timeLoss="0.00" traveltime="89.00">
<ride waitingTime="538.00" vehicle="trip_0" depart="538.00" arrival="627.00" arrivalPos="191.73" duration="89.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<personinfo id="p.4" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00" duration="795.00" waitingTime="706.00" timeLoss="0.00" traveltime="89.00">
<ride waitingTime="706.00" vehicle="trip_0" depart="706.00" arrival="795.00" arrivalPos="191.73" duration="89.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<tripinfo id="trip_0" depart="0.00" departLane="A0B0_1" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="-1.00" arrivalLane="" arrivalPos="-1.00" arrivalSpeed="-1.00" duration="856.00" routeLength="7635.73" waitingTime="0.00" waitingCount="0" stopTime="305.00" timeLoss="240.00" rerouteNo="11" devices="tripinfo_trip_0 routing_trip_0 taxi_trip_0 person_trip_0" vType="taxi_small" speedFactor="1.00" vaporized="">
<taxi customers="5" occupiedDistance="6108.67" occupiedTime="444.80"/>
</tripinfo>
</tripinfos>
3 changes: 3 additions & 0 deletions tests/sumo/devices/taxi/groups/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# 5 persons that do not want to share a taxi
5persons_ungrouped

# 5 persons that do not want to share a taxi but use a sharing dispatcher
5persons_ungrouped_routeExtension

# use a transport definition to call a taxi
2containers

Expand Down

0 comments on commit 798d5aa

Please sign in to comment.