Skip to content

Commit

Permalink
Added netedit test. Refs #12395 and #3045
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Nov 13, 2023
1 parent c969f67 commit a350845
Show file tree
Hide file tree
Showing 20 changed files with 1,050 additions and 2 deletions.
31 changes: 31 additions & 0 deletions tests/netedit/basic/missing_inputs/additionals.add.xml
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-07-24 09:36:00 by Eclipse SUMO netedit Version v1_18_0+0457-a12353752e9
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<busStop id="busStopA" lane="Edge2_1" startPos="29.80" endPos="39.80"/>
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="17.50" endPos="22.50"/>
<trainStop id="trainStopA" lane="Edge3_1" startPos="9.80" endPos="19.80"/>
<trainStop id="trainStopB" name="m" lane="EdgeCenter1_1" startPos="11.50" endPos="16.50"/>
<containerStop id="containerStopA" lane="Edge2_1" startPos="9.80" endPos="19.80"/>
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="5.50" endPos="10.50"/>
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="20.80" endPos="28.80"/>
<chargingStation id="chargingStationB" lane="EdgeCenter0_1" startPos="2.30" endPos="7.30"/>
<parkingArea id="parkingAreaA" lane="Edge3_1" startPos="29.80" endPos="39.80"/>
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="14.30" endPos="19.30"/>
<!-- TAZs -->
<taz id="taz_green" shape="18.00,20.00 18.00,16.00 0.00,16.00 0.00,20.00 18.00,20.00" fill="1" color="green">
<tazSource id="Edge2" weight="1.00"/>
<tazSink id="Edge2" weight="1.00"/>
<tazSource id="Edge3" weight="1.00"/>
<tazSink id="Edge3" weight="1.00"/>
</taz>
<taz id="taz_red" shape="36.00,20.00 36.00,16.00 54.00,16.00 54.00,20.00 36.00,20.00" fill="1" color="red">
<tazSource id="Edge0" weight="1.00"/>
<tazSink id="Edge0" weight="1.00"/>
<tazSource id="Edge5" weight="1.00"/>
<tazSink id="Edge5" weight="1.00"/>
</taz>
</additional>
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions tests/netedit/basic/missing_inputs/gui-settings.xml
@@ -0,0 +1,6 @@
<viewsettings>
<viewport zoom="140.00" x="30.00" y="25.00" angle="0.00"/>
<scheme name="testing">
<background backgroundColor="white" showGrid="1" gridXSize="2.0" gridYSize="2.0"/>
</scheme>
</viewsettings>
224 changes: 224 additions & 0 deletions tests/netedit/basic/missing_inputs/guisettingsoutput.netedit

Large diffs are not rendered by default.

Empty file.
61 changes: 61 additions & 0 deletions tests/netedit/basic/missing_inputs/net.con.xml
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-07-24 09:24:49 by Eclipse SUMO netedit Version v1_18_0+0457-a12353752e9
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="D:\SUMO\tests\netedit\demandelements\net.net.xml"/>
</input>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.50"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="0"/>
</pedestrian>
</configuration>
-->

<connections version="1.16" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/connections_file.xsd">
<connection from="Edge0" to="Edge1" fromLane="0" toLane="0"/>
<connection from="Edge0" to="Edge1" fromLane="1" toLane="1"/>

<connection from="Edge1" to="Edge2" fromLane="0" toLane="0"/>
<connection from="Edge1" to="Edge2" fromLane="1" toLane="1"/>

<connection from="Edge2" to="EdgeBike0" fromLane="0" toLane="0"/>
<connection from="Edge2" to="EdgeBike0" fromLane="1" toLane="1"/>

<connection from="Edge3" to="Edge4" fromLane="0" toLane="0"/>
<connection from="Edge3" to="Edge4" fromLane="1" toLane="1"/>

<connection from="Edge4" to="Edge5" fromLane="0" toLane="0"/>
<connection from="Edge4" to="Edge5" fromLane="1" toLane="1"/>

<connection from="Edge5"/>

<connection from="EdgeBike0" to="EdgeCenter0" fromLane="0" toLane="0"/>
<connection from="EdgeBike0" to="EdgeCenter0" fromLane="1" toLane="1"/>

<connection from="EdgeBike1" to="Edge3" fromLane="0" toLane="0"/>
<connection from="EdgeBike1" to="Edge3" fromLane="1" toLane="1" keepClear="0"/>

<connection from="EdgeCenter0" to="EdgeCenter1" fromLane="0" toLane="0"/>
<connection from="EdgeCenter0" to="EdgeCenter1" fromLane="1" toLane="1"/>

<connection from="EdgeCenter1" to="EdgeBike1" fromLane="0" toLane="0"/>
<connection from="EdgeCenter1" to="EdgeBike1" fromLane="1" toLane="1"/>

</connections>
72 changes: 72 additions & 0 deletions tests/netedit/basic/missing_inputs/net.edg.xml
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-07-24 09:24:49 by Eclipse SUMO netedit Version v1_18_0+0457-a12353752e9
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="D:\SUMO\tests\netedit\demandelements\net.net.xml"/>
</input>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.50"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="0"/>
</pedestrian>
</configuration>
-->

<edges version="1.16" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/edges_file.xsd">
<edge id="Edge0" from="Junction0" to="Junction1" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="Edge1" from="Junction1" to="Junction2" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="Edge2" from="Junction2" to="Junction3" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="Edge3" from="Junction3" to="Junction2" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="Edge4" from="Junction2" to="Junction1" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="Edge5" from="Junction1" to="Junction0" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="EdgeBike0" from="Junction3" to="Junction4" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" allow="bus"/>
</edge>
<edge id="EdgeBike1" from="Junction4" to="Junction3" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" allow="bus"/>
</edge>
<edge id="EdgeCenter0" from="Junction4" to="JunctionCenter" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="EdgeCenter1" from="JunctionCenter" to="Junction4" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian bicycle" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
</edges>

0 comments on commit a350845

Please sign in to comment.