Skip to content

Commit

Permalink
added test refs #21, #16196
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 18, 2025
1 parent ebbaedf commit 3121372
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Mon 11 Jan 2016 01:36:52 PM CET by Netedit Version dev-SVN-r19701I
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/netedit.exeConfiguration.xsd">
<input>
<sumo-net-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
</input>
<output>
<output-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
<plain-output-prefix value="/scr2/debug/2097/input_plain"/>
</output>
<processing>
<no-turnarounds value="true"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
<junctions.corner-detail value="0"/>
</processing>
</configuration>
-->

<connections version="0.25" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/connections_file.xsd">
<connection from="WC" to="CE" fromLane="0" toLane="0" speed="5"/>

</connections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Mon 11 Jan 2016 01:36:52 PM CET by Netedit Version dev-SVN-r19701I
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/netedit.exeConfiguration.xsd">
<input>
<sumo-net-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
</input>
<output>
<output-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
<plain-output-prefix value="/scr2/debug/2097/input_plain"/>
</output>
<processing>
<no-turnarounds value="true"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
<junctions.corner-detail value="0"/>
</processing>
</configuration>
-->

<edges version="0.25" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/edges_file.xsd">
<edge id="CE" from="C" to="E"/>
<edge id="WC" from="W" to="C"/>
</edges>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Mon 11 Jan 2016 01:36:52 PM CET by Netedit Version dev-SVN-r19701I
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/netedit.exeConfiguration.xsd">
<input>
<sumo-net-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
</input>
<output>
<output-file value="/scr1/sumoI/sumo/tests/sumo/net2.net.xml"/>
<plain-output-prefix value="/scr2/debug/2097/input_plain"/>
</output>
<processing>
<no-turnarounds value="true"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
<junctions.corner-detail value="0"/>
</processing>
</configuration>
-->

<nodes version="0.25" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/nodes_file.xsd">
<location netOffset="100.00,100.00" convBoundary="0.00,0.00,200.00,200.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>

<node id="C" x="100.00" y="100.00" radius="5"/>
<node id="E" x="200.00" y="100.00"/>
<node id="W" x="0.00" y="100.00"/>
</nodes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-02-18 17:33:30 by Eclipse SUMO netconvert Version v1_22_0+0300-ebbaedf0dd7
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
<netconvertConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<node-files value="input_plain.nod.xml"/>
<edge-files value="input_plain.edg.xml"/>
<connection-files value="input_plain.con.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="net.net.xml"/>
<plain-output-prefix value="plain"/>
</output>
<bicycle>
<bikelanes.guess value="true"/>
</bicycle>
<report>
<xml-validation value="never"/>
</report>
</netconvertConfiguration>
-->

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

<location netOffset="100.00,0.00" convBoundary="0.00,0.00,200.00,0.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>

<edge id=":C_0" function="internal">
<lane id=":C_0_0" index="0" allow="bicycle" speed="13.89" length="10.00" width="1.00" shape="95.00,-3.70 105.00,-3.70"/>
<lane id=":C_0_1" index="1" disallow="pedestrian bicycle" speed="13.89" length="10.00" shape="95.00,-1.60 105.00,-1.60"/>
</edge>

<edge id="CE" from="C" to="E" priority="-1">
<lane id="CE_0" index="0" allow="bicycle" speed="13.89" length="95.00" width="1.00" shape="105.00,-3.70 200.00,-3.70"/>
<lane id="CE_1" index="1" disallow="pedestrian bicycle" speed="13.89" length="95.00" shape="105.00,-1.60 200.00,-1.60"/>
</edge>
<edge id="WC" from="W" to="C" priority="-1">
<lane id="WC_0" index="0" allow="bicycle" speed="13.89" length="95.00" width="1.00" shape="0.00,-3.70 95.00,-3.70"/>
<lane id="WC_1" index="1" disallow="pedestrian bicycle" speed="13.89" length="95.00" shape="0.00,-1.60 95.00,-1.60"/>
</edge>

<junction id="C" type="priority" x="100.00" y="0.00" incLanes="WC_0 WC_1" intLanes=":C_0_0 :C_0_1" shape="105.00,0.00 105.00,-4.20 95.00,-4.20 95.00,0.00" radius="5.00">
<request index="0" response="00" foes="00" cont="0"/>
<request index="1" response="00" foes="00" cont="0"/>
</junction>
<junction id="E" type="dead_end" x="200.00" y="0.00" incLanes="CE_0 CE_1" intLanes="" shape="200.00,-4.20 200.00,0.00"/>
<junction id="W" type="dead_end" x="0.00" y="0.00" incLanes="" intLanes="" shape="0.00,0.00 0.00,-4.20"/>

<connection from="WC" to="CE" fromLane="0" toLane="0" via=":C_0_0" dir="s" state="M"/>
<connection from="WC" to="CE" fromLane="1" toLane="1" via=":C_0_1" dir="s" state="M"/>

<connection from=":C_0" to="CE" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_0" to="CE" fromLane="1" toLane="1" dir="s" state="M"/>

</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--edge-files=input_plain.edg.xml --connection-files input_plain.con.xml
--node-files=input_plain.nod.xml --output=net.net.xml
--bikelanes.guess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
3 changes: 3 additions & 0 deletions tests/netconvert/import/XML/connections/testsuite.netconvert
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ visibility
# custom speed
speed

# custom speed
speed_guessMoreLanes

# custom connection length
length

Expand Down

0 comments on commit 3121372

Please sign in to comment.