Skip to content

Commit 334e341

Browse files
committed
added test refs #21, #9812
1 parent 09074a1 commit 334e341

File tree

16 files changed

+560
-0
lines changed

16 files changed

+560
-0
lines changed

tests/sumo/devices/taxi/bugs/testsuite.sumo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ticket8578
1616
# rail taxi simulation without using vClass taxi
1717
ticket9812
1818

19+
# rail taxi simulation without using vClass taxi
20+
ticket9812_taxi_vclasses
21+
1922
# rail taxi simulation without using vClass taxi
2023
ticket9812_railRouter
2124

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2026-04-14T01:02:35.789977+01:00 by Eclipse SUMO sumo v1_26_0+1122-09074a15319
4+
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
5+
6+
<input>
7+
<net-file value="net.net.xml"/>
8+
<route-files value="input_routes.rou.xml"/>
9+
<additional-files value="input_additional.add.xml"/>
10+
</input>
11+
12+
<output>
13+
<tripinfo-output value="tripinfos.xml"/>
14+
<vehroute-output value="vehroutes.xml"/>
15+
<vehroute-output.write-unfinished value="true"/>
16+
<railsignal-vehicle-output value="railsignal_vehicles.xml"/>
17+
</output>
18+
19+
<routing>
20+
<persontrip.transfer.taxi-walk value="ptStops"/>
21+
<persontrip.transfer.walk-taxi value="ptStops"/>
22+
</routing>
23+
24+
<report>
25+
<duration-log.disable value="true"/>
26+
<no-step-log value="true"/>
27+
</report>
28+
29+
<taxi_device>
30+
<device.taxi.dispatch-period value="30"/>
31+
</taxi_device>
32+
33+
<mesoscopic>
34+
<mesosim value="true"/>
35+
</mesoscopic>
36+
37+
</sumoConfiguration>
38+
-->
39+
40+
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
41+
<person id="p_0" depart="0.00" arrival="69.00">
42+
<stop trainStop="ts_0" duration="0.00"/>
43+
<ride from="E1" to="E6" trainStop="ts_1" lines="taxi"/>
44+
</person>
45+
46+
<vehicle id="t_0" type="railtaxi" depart="0.00" departSpeed="13.89" speedFactor="1.0000">
47+
<routeDistribution>
48+
<route replacedOnEdge="-E8" reason="taxi:prepare_dispatch" replacedAtTime="0.00" probability="0" edges="-E8 -E7 -E7.50 E7 E70 E0"/>
49+
<route replacedOnEdge="-E8" reason="taxi:dispatch" replacedAtTime="0.00" probability="0" edges="-E8 E1 E6"/>
50+
<route edges="-E8 -E7 -E7.50 E7 E70 E0 E1 E2 E3 E4 E5 E6"/>
51+
</routeDistribution>
52+
<stop busStop="ts_0" permitted="p_0" actType="pickup p_0 (0)"/>
53+
<stop busStop="ts_1" actType="dropOff p_0 (0)"/>
54+
<param key="has.taxi.device" value="true"/>
55+
</vehicle>
56+
57+
</routes>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Warning: No connection between stop 'ts_0' and stop 'ts_1' found.
2+
Error: No connection found between trainStop 'ts_0' and trainStop 'ts_1' for person 'p_0'.
3+
Quitting (on error).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Warning: 1 total messages of type: Vehicle '%' aborted waiting %.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Warning: No connection between stop 'ts_0' and stop 'ts_1' found.
2+
Error: No connection found between trainStop 'ts_0' and trainStop 'ts_1' for person 'p_0'.
3+
Quitting (on error).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2024-12-18 08:53:58 by Eclipse SUMO netedit Version v1_21_0+1414-ecd7e15422b
4+
-->
5+
6+
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
7+
<!-- StoppingPlaces -->
8+
<trainStop id="ts_0" lane="E1_0" startPos="45.87" endPos="55.87"/>
9+
<trainStop id="ts_1" lane="E6_0" startPos="33.68" endPos="43.68"/>
10+
</additional>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2024-12-18 08:53:33 by Eclipse SUMO netedit Version v1_21_0+1414-ecd7e15422b
4+
-->
5+
6+
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
7+
<!-- Vehicles, persons and containers (sorted by depart) -->
8+
<vType id="railtaxi" vClass="rail" length="60" accel="1.6" decel="1.6"/>
9+
<trip id="t_0" type="railtaxi" depart="0.00" from="-E8" to="E0" departSpeed="0">
10+
<param key="has.taxi.device" value="true"/>
11+
</trip>
12+
<person id="p_0" depart="0.00">
13+
<stop trainStop="ts_0" duration="0"/>
14+
<personTrip trainStop="ts_1" modes="taxi"/>
15+
</person>
16+
</routes>

tests/sumo/devices/taxi/bugs/ticket9812_taxi_vclasses/net.net.xml

Lines changed: 256 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{CLEAR}
2+
--no-step-log --no-duration-log --net-file=net.net.xml
3+
-r input_routes.rou.xml
4+
-a input_additional.add.xml
5+
--device.taxi.dispatch-period 30
6+
--device.taxi.vclasses rail
7+
--tripinfo-output tripinfos.xml
8+
--vehroute-output vehroutes.xml
9+
--vehroute-output.write-unfinished
10+
--railsignal-vehicle-output railsignal_vehicles.xml
11+
--persontrip.transfer.taxi-walk ptStops
12+
--persontrip.transfer.walk-taxi ptStops

0 commit comments

Comments
 (0)