Skip to content

Commit

Permalink
add test ref #14482
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Apr 30, 2024
1 parent 6e5b131 commit ad2a6ff
Show file tree
Hide file tree
Showing 11 changed files with 287 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: parkingArea 'ParkAreaA'on lane 'a_0' forbids access because vehicle 'foreigner' does not provide any valid badge.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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">

<parkingArea id="ParkAreaA" lane="a_0" startPos="200" endPos="224" roadsideCapacity="3" length="8" onRoad="true" acceptedBadges="resident guest"/>
<parkingArea id="ParkAreaB" lane="a_0" startPos="240" endPos="264" roadsideCapacity="3" length="8" onRoad="true"/>

</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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="resident" parkingBadges="resident"/>
<vType id="foreigner"/>

<route id="route1" edges="a">
<stop parkingArea="ParkAreaA" duration="20"/>
<stop parkingArea="ParkAreaB" duration="20"/>
</route>

<!-- vehicle type provides access rights -->
<vehicle id="resident" type="resident" route="route1" depart="0"/>

<!-- vehicle with missing access rights for first stop -->
<vehicle id="foreigner" type="foreigner" route="route1" depart="0"/>

<!-- vehicle with overriden rights -->
<vehicle id="guest" type="foreigner" route="route1" depart="5" parkingBadges="guest"/>

</routes>
48 changes: 48 additions & 0 deletions tests/sumo/extended/stops/parkingArea_onRoad/access/net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on So 09 Dez 2018 21:59:25 CET by Eclipse SUMO netedit Version eeef47f
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="/home/kobo/dlr/sumo/tests/sumo/extended/rerouter/parking/onRoad/net.net.xml"/>
</input>
<output>
<output-file value="/home/kobo/dlr/sumo/tests/sumo/extended/rerouter/parking/onRoad/net.net.xml"/>
<output.street-names value="true"/>
</output>
<processing>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
</processing>
<junctions>
<no-internal-links value="true"/>
<no-turnarounds value="true"/>
<junctions.corner-detail value="0"/>
<junctions.limit-turn-speed value="-1"/>
<rectangular-lane-cut value="false"/>
</junctions>
<pedestrian>
<walkingareas value="false"/>
</pedestrian>
</configuration>
-->

<net version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="-362563.54,-4832311.19" convBoundary="654.41,92.53,748.05,382.54" origBoundary="13.296064,43.631354,13.321826,43.642858" projParameter="+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"/>

<edge id="a" from="12" to="14" name="Via Montespirello" priority="60" type="strada.doppiosenso.50">
<lane id="a_0" index="0" speed="13.89" length="304.81" shape="658.98,91.06,57.00 752.62,381.07,51.00"/>
<lane id="a_1" index="1" speed="13.89" length="304.81" shape="655.93,92.04,57.00 749.57,382.05,51.00"/>
</edge>

<junction id="12" type="dead_end" x="654.41" y="92.53" z="57.00" incLanes="" intLanes="" shape="654.41,92.53,57.00 660.50,90.56,57.00"/>
<junction id="14" type="dead_end" x="748.05" y="382.54" z="51.00" incLanes="a_0 a_1" intLanes="" shape="754.14,380.57,51.00 748.05,382.54,51.00"/>

</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log --no-duration-log -n net.net.xml --route-files=input_routes.rou.xml --additional-files=input_additional.add.xml
--stop-output stopinfos.xml
--tripinfo-output tripinfos.xml
--ignore-route-errors true
Empty file.
48 changes: 48 additions & 0 deletions tests/sumo/extended/stops/parkingArea_onRoad/access/stopinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-04-30 11:07:54 by Eclipse SUMO sumo Version v1_14_1+12723-e50e7edf65f
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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<ignore-route-errors value="true"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="resident" type="resident" lane="a_0" pos="207.98" parking="1" started="21.00" ended="41.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="foreigner" type="foreigner" lane="a_0" pos="247.99" parking="1" started="28.00" ended="48.00" parkingArea="ParkAreaB" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="guest" type="foreigner" lane="a_0" pos="215.97" parking="1" started="29.00" ended="49.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="resident" type="resident" lane="a_0" pos="255.97" parking="1" started="51.00" ended="71.00" parkingArea="ParkAreaB" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="guest" type="foreigner" lane="a_0" pos="247.98" parking="1" started="57.00" ended="77.00" parkingArea="ParkAreaB" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
</stops>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-04-11 18:35:16 by Eclipse SUMO sumo Version v1_19_0+1793-abaea7a63af
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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<stop-output value="stopinfos.xml"/>
</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>
</configuration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="flow1.0" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="14.63" ended="222.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.1" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="19.63" ended="227.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.2" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="24.63" ended="232.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.3" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="29.63" ended="237.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.4" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="34.63" ended="242.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.5" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="39.63" ended="247.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="flow1.6" type="DEFAULT_VEHTYPE" edge="a" pos="203.21" parking="1" started="44.63" ended="252.00" parkingArea="ParkAreaA" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
</stops>
46 changes: 46 additions & 0 deletions tests/sumo/extended/stops/parkingArea_onRoad/access/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-04-30 11:07:54 by Eclipse SUMO sumo Version v1_14_1+12723-e50e7edf65f
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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<ignore-route-errors value="true"/>
<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">
<tripinfo id="foreigner" depart="3.00" departLane="a_0" departPos="5.10" departSpeed="0.00" departDelay="3.00" arrival="57.00" arrivalLane="a_1" arrivalPos="304.81" arrivalSpeed="13.60" duration="54.00" routeLength="299.71" waitingTime="2.00" waitingCount="1" stopTime="20.00" timeLoss="11.75" rerouteNo="0" devices="tripinfo_foreigner" vType="foreigner" speedFactor="1.00" vaporized=""/>
<tripinfo id="resident" depart="0.00" departLane="a_0" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="77.00" arrivalLane="a_0" arrivalPos="304.81" arrivalSpeed="13.18" duration="77.00" routeLength="299.71" waitingTime="0.00" waitingCount="0" stopTime="40.00" timeLoss="15.23" rerouteNo="0" devices="tripinfo_resident" vType="resident" speedFactor="1.00" vaporized=""/>
<tripinfo id="guest" depart="6.00" departLane="a_0" departPos="5.10" departSpeed="0.00" departDelay="1.00" arrival="84.00" arrivalLane="a_0" arrivalPos="304.81" arrivalSpeed="13.60" duration="78.00" routeLength="299.71" waitingTime="1.00" waitingCount="1" stopTime="40.00" timeLoss="15.55" rerouteNo="0" devices="tripinfo_guest" vType="foreigner" speedFactor="1.00" vaporized=""/>
</tripinfos>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-02-11 11:28:50 by Eclipse SUMO sumo Version v1_12_0+0490-00f3a0f
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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<stop-output value="stopinfos.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
<pedestrian.model value="nonInteracting"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes 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">
<tripinfo id="flow1.0" depart="0.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="222.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.0" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.1" depart="5.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="227.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.1" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.2" depart="10.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="232.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.2" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.3" depart="15.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="237.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.3" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.4" depart="20.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="242.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.4" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.5" depart="25.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="247.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.5" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="flow1.6" depart="30.00" departLane="" departPos="0.00" departSpeed="13.89" departDelay="0.00" arrival="252.00" arrivalLane="" arrivalPos="304.81" arrivalSpeed="0.49" duration="222.00" routeLength="304.81" waitingTime="0.00" waitingCount="0" stopTime="200.00" timeLoss="200.00" rerouteNo="0" devices="tripinfo_flow1.6" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
</tripinfos>
3 changes: 3 additions & 0 deletions tests/sumo/extended/stops/parkingArea_onRoad/testsuite.sumo
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# give access only to vehicles with the right badges
access

# block on road line while using parkingArea
onRoad

Expand Down

0 comments on commit ad2a6ff

Please sign in to comment.