Skip to content

Commit

Permalink
added test refs #14819, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 5, 2024
1 parent e658c06 commit 0c3be0b
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 0 deletions.
@@ -0,0 +1 @@
Warning: stop for vehicle 'trip_0' on lane 'A0B0_1' has an invalid position.
@@ -0,0 +1,3 @@
Warning: Network contains internal links which are ignored. Vehicles will 'jump' across junctions and thus underestimate route lengths and travel times.
Warning: Taxi 'trip_0' reaches scheduled end of service at time=128.00.
Warning: Taxi 'trip_1' reaches scheduled end of service at time=508.00.
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<busStop id="A" lane="B1C1_1" startPos="87.23" endPos="97.23"/>
<busStop id="B" lane="D1E1_1" startPos="215.98" endPos="225.98"/>
</additional>
@@ -0,0 +1,19 @@
<?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" vClass="taxi">
<param key="has.taxi.device" value="true"/>
<param key="device.taxi.end" value="400"/>
<param key="device.taxi.parking" value="false"/>
</vType>

<trip id="trip_0" type="taxi" depart="0.00" from="A0B0" to="B0C0">
</trip>

<person id="p0" depart="0.00">
<ride from="B2C2" to="A0B0" lines="taxi" group="g0"/>
</person>
<person id="p1" depart="0.00">
<ride from="B2C2" to="A0B0" lines="taxi" group="g0"/>
</person>

</routes>
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log --net-file=net.net.xml
-r input_routes.rou.xml
--tripinfo-output tripinfos.xml
-e 1000
Empty file.
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-05-05 14:35:38 by Eclipse SUMO sumo Version v1_19_0+2063-e658c060a45
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<time>
<end value="1000"/>
</time>
<processing>
<default.speeddev value="0"/>
</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="p0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="48.00" vehicle="trip_0" depart="48.00" arrival="228.00" arrivalPos="287.60" duration="180.00" routeLength="1372.08" timeLoss="20.20"/>
</personinfo>
<personinfo id="p1" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="48.00" vehicle="trip_0" depart="48.00" arrival="229.00" arrivalPos="287.60" duration="181.00" routeLength="1372.08" timeLoss="20.20"/>
</personinfo>
<tripinfo id="trip_0" depart="0.00" departLane="A0B0_1" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="230.00" arrivalLane="A0B0_1" arrivalPos="287.60" arrivalSpeed="2.04" duration="230.00" routeLength="1868.34" waitingTime="4.00" waitingCount="2" stopTime="62.00" timeLoss="30.11" rerouteNo="2" devices="vehroute_trip_0 tripinfo_trip_0 routing_trip_0 taxi_trip_0 person_trip_0" vType="taxi" speedFactor="1.00" vaporized="">
<taxi customers="2" occupiedDistance="1372.08" occupiedTime="183.00"/>
</tripinfo>
</tripinfos>
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-12-21 11:35:39 by Eclipse SUMO sumo Version v1_15_0+1188-e721eef
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<time>
<end value="1000"/>
</time>
<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>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<personinfo id="p0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="21.00" vehicle="trip_1" depart="21.00" arrival="110.00" arrivalPos="191.73" duration="89.00" routeLength="1221.73" timeLoss="0.00"/>
</personinfo>
<tripinfo id="trip_0" depart="0.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="155.00" arrivalLane="" arrivalPos="285.60" arrivalSpeed="13.89" duration="155.00" routeLength="573.20" waitingTime="0.00" waitingCount="0" stopTime="1.00" timeLoss="113.53" rerouteNo="0" devices="vehroute_trip_0 tripinfo_trip_0 routing_trip_0 taxi_trip_0" vType="taxi" speedFactor="1.00" vaporized="">
<taxi customers="0" occupiedDistance="0.00" occupiedTime="0.00"/>
</tripinfo>
<tripinfo id="trip_1" depart="0.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="508.00" arrivalLane="" arrivalPos="287.60" arrivalSpeed="13.89" duration="508.00" routeLength="1605.20" waitingTime="0.00" waitingCount="0" stopTime="61.00" timeLoss="391.00" rerouteNo="2" devices="vehroute_trip_1 tripinfo_trip_1 routing_trip_1 taxi_trip_1 person_trip_1" vType="taxi" speedFactor="1.00" vaporized="">
<taxi customers="1" occupiedDistance="1221.73" occupiedTime="88.96"/>
</tripinfo>
</tripinfos>
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-05-05 14:35:38 by Eclipse SUMO sumo Version v1_19_0+2063-e658c060a45
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<time>
<end value="1000"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<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">
<person id="p0" depart="0.00" arrival="228.00">
<ride from="B2C2" to="A0B0" arrivalPos="287.60" lines="taxi"/>
</person>

<person id="p1" depart="0.00" arrival="229.00">
<ride from="B2C2" to="A0B0" arrivalPos="287.60" lines="taxi"/>
</person>

<vehicle id="trip_0" type="taxi" depart="0.00" arrival="230.00">
<routeDistribution>
<route replacedOnEdge="A0B0" reason="taxi:prepare_dispatch" replacedAtTime="0.00" probability="0" edges="A0B0 B0C0"/>
<route replacedOnEdge="A0B0" reason="taxi:dispatch" replacedAtTime="0.00" probability="0" edges="A0B0 B2C2 A0B0"/>
<route edges="A0B0 B0B1 B1B2 B2C2 C2B2 B2A2 A2A1 A1A0 A0B0"/>
</routeDistribution>
<stop lane="B2C2_1" permitted="p0 p1" actType="pickup p0 p1 (0)"/>
<stop lane="A0B0_1" actType="dropOff p0 p1 (0)"/>
</vehicle>

</routes>
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-06-11 08:16:54 by Eclipse SUMO sumo Version v1_17_0+0912-9ddcf46
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="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<time>
<end value="1000"/>
</time>
<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>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<person id="p0" depart="0.00" arrival="110.00">
<ride from="B2C2" to="A0B0" arrivalPos="191.73" lines="taxi"/>
</person>

<vehicle id="trip_0" type="taxi" depart="0.00" arrival="155.00">
<route edges="A0B0 B0C0"/>
<stop edge="A0B0" actType="idling"/>
</vehicle>

<vehicle id="trip_1" type="taxi" depart="0.00" arrival="508.00">
<routeDistribution>
<route replacedOnEdge="A2B2" reason="taxi:prepare_dispatch" replacedAtTime="0.00" probability="0" edges="A2B2 B2C2"/>
<route replacedOnEdge="A2B2" reason="taxi:dispatch" replacedAtTime="0.00" probability="0" edges="A2B2 B2C2 A0B0"/>
<route edges="A2B2 B2C2 C2C1 C1B1 B1A1 A1A0 A0B0"/>
</routeDistribution>
<stop lane="B2C2_1" permitted="p0" actType="pickup p0 (0)"/>
<stop lane="A0B0_1" actType="dropOff p0 (0)"/>
<param key="device.taxi.end" value="500"/>
</vehicle>

</routes>
1 change: 1 addition & 0 deletions tests/sumo/devices/taxi/idling/stop/testsuite.sumo
Expand Up @@ -12,3 +12,4 @@ end_of_work

# test taxi device attribute end
end_of_work_initial_stop
reuse_stop_laneEnd

0 comments on commit 0c3be0b

Please sign in to comment.