Skip to content

Commit

Permalink
added instantInductionLoop tests refs #5252
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 29, 2021
1 parent 9e24673 commit 6560336
Show file tree
Hide file tree
Showing 59 changed files with 967 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/sumo/output/e1Instant/persons/car/detector.sumo
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-09-29 07:26:19 by Eclipse SUMO sumo Version v1_10_0+1049-9e24673
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net3.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
</instantE1>
56 changes: 56 additions & 0 deletions tests/sumo/output/e1Instant/persons/car/detector2.sumo
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-09-29 07:26:19 by Eclipse SUMO sumo Version v1_10_0+1049-9e24673
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net3.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
<instantOut id="det3" time="5.42" state="enter" vehID="SE_car.0_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE"/>
<instantOut id="det3" time="5.78" state="leave" vehID="SE_car.0_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="25.42" state="enter" vehID="SE_car.1_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="25.78" state="leave" vehID="SE_car.1_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="45.42" state="enter" vehID="SE_car.2_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="45.78" state="leave" vehID="SE_car.2_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="65.42" state="enter" vehID="SE_car.3_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="65.78" state="leave" vehID="SE_car.3_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="85.42" state="enter" vehID="SE_car.4_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="85.78" state="leave" vehID="SE_car.4_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="105.42" state="enter" vehID="SE_car.5_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="105.78" state="leave" vehID="SE_car.5_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="125.42" state="enter" vehID="SE_car.6_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="125.78" state="leave" vehID="SE_car.6_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="145.42" state="enter" vehID="SE_car.7_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="145.78" state="leave" vehID="SE_car.7_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="165.42" state="enter" vehID="SE_car.8_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="165.78" state="leave" vehID="SE_car.8_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="185.42" state="enter" vehID="SE_car.9_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="185.78" state="leave" vehID="SE_car.9_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
</instantE1>
Empty file.
@@ -0,0 +1,6 @@
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">

<instantInductionLoop id="det0" lane="SC_0" pos="50" freq="60" file="detector.xml" detectPersons="car"/>
<instantInductionLoop id="det3" lane="SC_3" pos="50" freq="60" file="detector2.xml" detectPersons="car"/>

</additional>
1 change: 1 addition & 0 deletions tests/sumo/output/e1Instant/persons/car/options.sumo
@@ -0,0 +1 @@
--no-step-log --no-duration-log --net-file=net3.net.xml --routes=input_routes.rou.xml -a input_additional.add.xml
Empty file.
36 changes: 36 additions & 0 deletions tests/sumo/output/e1Instant/persons/default/detector.sumo
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-09-29 07:23:19 by Eclipse SUMO sumo Version v1_10_0+1049-9e24673
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net3.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
</instantE1>
46 changes: 46 additions & 0 deletions tests/sumo/output/e1Instant/persons/default/detector.sumo.meso
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Wed Dec 21 09:24:18 2016 by SUMO Version dev-SVN-r22342
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
SPDX-License-Identifier: EPL-2.0
<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>
<time>
<begin value="0"/>
<end value="1000"/>
</time>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<mesoscopic>
<mesosim value="true"/>
</mesoscopic>
</configuration>
-->

<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/det_e1meso_file.xsd">
<interval begin="0.00" end="100.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="100.00" end="200.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="200.00" end="300.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="300.00" end="400.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="400.00" end="500.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="500.00" end="600.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="600.00" end="700.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="700.00" end="800.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="800.00" end="900.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
<interval begin="900.00" end="1000.00" id="3/1to2/1" sampledSeconds="0.00" departed="0" arrived="0" entered="0" left="0"/>
</detector>
56 changes: 56 additions & 0 deletions tests/sumo/output/e1Instant/persons/default/detector2.sumo
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-09-29 07:23:19 by Eclipse SUMO sumo Version v1_10_0+1049-9e24673
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net3.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
<instantOut id="det3" time="5.42" state="enter" vehID="SE_car.0_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE"/>
<instantOut id="det3" time="5.78" state="leave" vehID="SE_car.0_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="25.42" state="enter" vehID="SE_car.1_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="25.78" state="leave" vehID="SE_car.1_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="45.42" state="enter" vehID="SE_car.2_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="45.78" state="leave" vehID="SE_car.2_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="65.42" state="enter" vehID="SE_car.3_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="65.78" state="leave" vehID="SE_car.3_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="85.42" state="enter" vehID="SE_car.4_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="85.78" state="leave" vehID="SE_car.4_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="105.42" state="enter" vehID="SE_car.5_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="105.78" state="leave" vehID="SE_car.5_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="125.42" state="enter" vehID="SE_car.6_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="125.78" state="leave" vehID="SE_car.6_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="145.42" state="enter" vehID="SE_car.7_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="145.78" state="leave" vehID="SE_car.7_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="165.42" state="enter" vehID="SE_car.8_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="165.78" state="leave" vehID="SE_car.8_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
<instantOut id="det3" time="185.42" state="enter" vehID="SE_car.9_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" gap="19.64"/>
<instantOut id="det3" time="185.78" state="leave" vehID="SE_car.9_0" speed="13.89" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.36"/>
</instantE1>
Empty file.
@@ -0,0 +1,6 @@
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">

<instantInductionLoop id="det0" lane="SC_0" pos="50" freq="60" file="detector.xml"/>
<instantInductionLoop id="det3" lane="SC_3" pos="50" freq="60" file="detector2.xml"/>

</additional>
1 change: 1 addition & 0 deletions tests/sumo/output/e1Instant/persons/default/options.sumo
@@ -0,0 +1 @@
--no-step-log --no-duration-log --net-file=net3.net.xml --routes=input_routes.rou.xml -a input_additional.add.xml
Empty file.
19 changes: 19 additions & 0 deletions tests/sumo/output/e1Instant/persons/input_routes.rou.xml
@@ -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="DEFAULT_VEHTYPE" sigma="0"/>

<route id="rSE" edges="SC CE"/>
<route id="rESb" edges="CE SC"/>

<personFlow id="SE" begin="0" end="200" period="10">
<walk route="rSE"/>
</personFlow>

<personFlow id="ESb" begin="0" end="200" from="CE" to="SC" period="5">
<walk route="rESb"/>
</personFlow>

<personFlow id="SE_car" begin="0" end="200" from="CE" to="SC" period="20">
<personTrip from="SC" to="CN" modes="car"/>
</personFlow>
</routes>
26 changes: 26 additions & 0 deletions tests/sumo/output/e1Instant/persons/testsuite.sumo
@@ -0,0 +1,26 @@
# default detector settings
default

# detect all walking persons on lane
walk

# detect persons walking in edge direction
walkForward

# detect persons walking in edge direction, detector is at the very start of the lane
walkForward_detAStart

# detect persons walking in edge direction, detector is at the very end of the lane
walkForward_detAtEnd

# detect persons walking against edge direction
walkBackward

# detect persons walking against edge direction, detector is at the start of the edge
walkBackward_detAtStart

# detect persons walking against edge direction, detector is at the end of the edge
walkBackward_detAtEnd

# detect persons riding in car
car
36 changes: 36 additions & 0 deletions tests/sumo/output/e1Instant/persons/walk/detector.sumo
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-09-29 07:26:19 by Eclipse SUMO sumo Version v1_10_0+1049-9e24673
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
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net3.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
</instantE1>

0 comments on commit 6560336

Please sign in to comment.