-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added rerouter tests with stops. refs #21
- Loading branch information
Showing
13 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/sumo/extended/rerouter/closing_keep_route_stop/input_additional.add.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd"> | ||
<rerouter id="rerouter" edges="beg"> | ||
<interval begin="20" end="86400"> | ||
<closingReroute id="middle"/> | ||
</interval> | ||
</rerouter> | ||
</additional> |
11 changes: 11 additions & 0 deletions
11
tests/sumo/extended/rerouter/closing_keep_route_stop/input_routes.rou.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> | ||
<vType id="DEFAULT_VEHTYPE" accel="2.6" decel="4.5" sigma="0" length="3" minGap="2" maxSpeed="70"/> | ||
|
||
<route id="r0" edges="beg middle end"> | ||
<stop edge="end" duration="5" endPos="50"/> | ||
</route> | ||
|
||
<flow id="flow_detour" begin="0" period="10" number="5" route="r0"> | ||
</flow> | ||
|
||
</routes> |
1 change: 1 addition & 0 deletions
1
tests/sumo/extended/rerouter/closing_keep_route_stop/options.sumo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-step-log -b 0 --no-duration-log --net-file=three_split.net.xml --route-files=input_routes.rou.xml --additional-files=input_additional.add.xml --vehroutes=vehroutes.xml |
Empty file.
85 changes: 85 additions & 0 deletions
85
tests/sumo/extended/rerouter/closing_keep_route_stop/vehroutes.sumo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-03-27 15:08:22 by Eclipse SUMO sumo Version v1_19_0+1556-21d71cc5145 | ||
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="three_split.net.xml"/> | ||
<route-files value="input_routes.rou.xml"/> | ||
<additional-files value="input_additional.add.xml"/> | ||
</input> | ||
<output> | ||
<write-license value="true"/> | ||
<vehroute-output value="vehroutes.xml"/> | ||
</output> | ||
<time> | ||
<begin value="0"/> | ||
</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"> | ||
<vehicle id="flow_detour.0" depart="0.00" arrival="201.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.1" depart="10.00" arrival="211.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.2" depart="20.00" arrival="221.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.3" depart="30.00" arrival="231.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="30.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.4" depart="40.00" arrival="241.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="40.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
</routes> |
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/sumo/extended/rerouter/closing_keep_vehicle_stop/input_additional.add.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd"> | ||
<rerouter id="rerouter" edges="beg"> | ||
<interval begin="20" end="86400"> | ||
<closingReroute id="middle"/> | ||
</interval> | ||
</rerouter> | ||
</additional> |
10 changes: 10 additions & 0 deletions
10
tests/sumo/extended/rerouter/closing_keep_vehicle_stop/input_routes.rou.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> | ||
<vType id="DEFAULT_VEHTYPE" accel="2.6" decel="4.5" sigma="0" length="3" minGap="2" maxSpeed="70"/> | ||
|
||
<route id="r0" edges="beg middle end"/> | ||
|
||
<flow id="flow_detour" begin="0" period="10" number="5" route="r0"> | ||
<stop edge="end" duration="5" endPos="50"/> | ||
</flow> | ||
|
||
</routes> |
1 change: 1 addition & 0 deletions
1
tests/sumo/extended/rerouter/closing_keep_vehicle_stop/options.sumo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-step-log -b 0 --no-duration-log --net-file=three_split.net.xml --route-files=input_routes.rou.xml --additional-files=input_additional.add.xml --vehroutes=vehroutes.xml |
Empty file.
85 changes: 85 additions & 0 deletions
85
tests/sumo/extended/rerouter/closing_keep_vehicle_stop/vehroutes.sumo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-03-27 15:08:22 by Eclipse SUMO sumo Version v1_19_0+1556-21d71cc5145 | ||
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="three_split.net.xml"/> | ||
<route-files value="input_routes.rou.xml"/> | ||
<additional-files value="input_additional.add.xml"/> | ||
</input> | ||
<output> | ||
<write-license value="true"/> | ||
<vehroute-output value="vehroutes.xml"/> | ||
</output> | ||
<time> | ||
<begin value="0"/> | ||
</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"> | ||
<vehicle id="flow_detour.0" depart="0.00" arrival="201.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.1" depart="10.00" arrival="211.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.2" depart="20.00" arrival="221.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="20.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.3" depart="30.00" arrival="231.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="30.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
<vehicle id="flow_detour.4" depart="40.00" arrival="241.00"> | ||
<routeDistribution> | ||
<route replacedOnEdge="beg" reason="rerouter" replacedAtTime="40.00" probability="0" edges="beg middle end"/> | ||
<route edges="beg beg2right right right2end end"/> | ||
</routeDistribution> | ||
<stop edge="end" endPos="50.00" duration="5.00"/> | ||
</vehicle> | ||
|
||
</routes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters