-
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.
- Loading branch information
1 parent
6c1cb2c
commit 7884f88
Showing
98 changed files
with
5,668 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
tests/netedit/elements/demands/personplan/persontrip/common/create/group/additionals.netedit
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,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e | ||
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 | ||
--> | ||
|
||
<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="46.00" endPos="56.00"/> | ||
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/> | ||
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/> | ||
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/> | ||
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/> | ||
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/> | ||
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/> | ||
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/> | ||
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/> | ||
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/> | ||
<!-- Detectors --> | ||
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/> | ||
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/> | ||
<!-- TAZs --> | ||
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" center="6.00,0.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="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" center="22.00,0.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> |
25 changes: 25 additions & 0 deletions
25
tests/netedit/elements/demands/personplan/persontrip/common/create/group/datas.netedit
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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e | ||
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 | ||
--> | ||
|
||
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd"> | ||
<interval id="dataSet" begin="0.00" end="3600.00"> | ||
<edge id="Edge0"/> | ||
<edge id="Edge1"/> | ||
<edge id="Edge2"/> | ||
<edge id="Edge3"/> | ||
<edge id="Edge4"/> | ||
<edge id="Edge5"/> | ||
</interval> | ||
</data> |
Empty file.
Empty file.
225 changes: 225 additions & 0 deletions
225
...edit/elements/demands/personplan/persontrip/common/create/group/guisettingsoutput.netedit
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
307 changes: 307 additions & 0 deletions
307
tests/netedit/elements/demands/personplan/persontrip/common/create/group/net.netedit
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
tests/netedit/elements/demands/personplan/persontrip/common/create/group/output.netedit
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,12 @@ | ||
TestFunctions: Netedit opened successfully | ||
Finding reference | ||
TestFunctions: 'reference.png' found. Position: 304 - 168 | ||
walk | ||
TestFunctions: Clicked over position 685 - 611 | ||
TestFunctions: Clicked over position 600 - 179 | ||
personTrip | ||
TestFunctions: Clicked over position 644 - 368 | ||
custom line | ||
TestFunctions: Clicked over position 304 - 168 | ||
TestFunctions: Clicked over position 304 - 168 | ||
TestFunctions: Netedit closed successfully |
Empty file.
22 changes: 22 additions & 0 deletions
22
tests/netedit/elements/demands/personplan/persontrip/common/create/group/routes.netedit
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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-08-13 15:56:00 by Eclipse SUMO netedit Version v1_20_0+1847-f2d10a7c7c6 | ||
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 | ||
--> | ||
|
||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> | ||
<!-- Vehicles, persons and containers (sorted by depart) --> | ||
<person id="p_0" depart="0.00"> | ||
<walk from="Edge0" busStop="busStopA"/> | ||
<personTrip busStop="busStopB" lines="custom line"/> | ||
</person> | ||
</routes> |
69 changes: 69 additions & 0 deletions
69
tests/netedit/elements/demands/personplan/persontrip/common/create/group/test.py
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,69 @@ | ||
#!/usr/bin/env python | ||
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo | ||
# Copyright (C) 2009-2024 German Aerospace Center (DLR) and others. | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# This Source Code 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 | ||
|
||
# @file test.py | ||
# @author Pablo Alvarez Lopez | ||
# @date 2019-07-16 | ||
|
||
# import common functions for netedit tests | ||
import os | ||
import sys | ||
|
||
testRoot = os.path.join(os.environ.get('SUMO_HOME', '.'), 'tests') | ||
neteditTestRoot = os.path.join( | ||
os.environ.get('TEXTTEST_HOME', testRoot), 'netedit') | ||
sys.path.append(neteditTestRoot) | ||
import neteditTestFunctions as netedit # noqa | ||
|
||
# Open netedit | ||
neteditProcess, referencePosition = netedit.setupAndStart(neteditTestRoot) | ||
|
||
# go to demand mode | ||
netedit.supermodeDemand() | ||
|
||
# go to person mode | ||
netedit.personMode() | ||
|
||
# change person plan | ||
netedit.changePersonPlan("walk", False) | ||
|
||
# create route using one edge | ||
netedit.leftClick(referencePosition, netedit.positions.elements.edge0) | ||
netedit.leftClick(referencePosition, netedit.positions.elements.demands.busStop) | ||
|
||
# press enter to create route | ||
netedit.typeEnter() | ||
|
||
# go to personTrip.busStop.busStop mode | ||
netedit.personPlanMode() | ||
|
||
# go to personTrip.busStop.busStop mode | ||
netedit.changePersonPlanMode("personTrip") | ||
|
||
# create personTrip.busStop.busStop | ||
netedit.leftClick(referencePosition, netedit.positions.elements.demands.busStopB) | ||
|
||
# set invalid person number | ||
netedit.changeDefaultValue(netedit.attrs.personTrip.busStop.busStop.create.group, "custom group") | ||
|
||
# press enter to create route | ||
netedit.typeEnter() | ||
|
||
# Check undo redo | ||
netedit.checkUndoRedo(referencePosition) | ||
|
||
# save Netedit config | ||
netedit.saveNeteditConfig(referencePosition) | ||
|
||
# quit netedit | ||
netedit.quit(neteditProcess) |
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 |
---|---|---|
|
@@ -3,3 +3,7 @@ vtypes | |
modes | ||
|
||
lines | ||
|
||
walk_factor | ||
|
||
group |
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 |
---|---|---|
|
@@ -3,3 +3,7 @@ vtypes | |
modes | ||
|
||
lines | ||
|
||
walk_factor | ||
|
||
group |
44 changes: 44 additions & 0 deletions
44
...edit/elements/demands/personplan/persontrip/common/create/walk_factor/additionals.netedit
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,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e | ||
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 | ||
--> | ||
|
||
<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="46.00" endPos="56.00"/> | ||
<busStop id="busStopB" name="i" lane="EdgeCenter1_1" startPos="24.18" endPos="31.09"/> | ||
<trainStop id="trainStopA" lane="Edge2_1" startPos="2.00" endPos="12.00"/> | ||
<trainStop id="trainStopB" name="m" lane="EdgeCenter0_1" startPos="6.05" endPos="12.95"/> | ||
<containerStop id="containerStopA" lane="Edge2_1" startPos="34.00" endPos="44.00"/> | ||
<containerStop id="containerStopB" lane="EdgeCenter1_1" startPos="10.36" endPos="20.73"/> | ||
<chargingStation id="chargingStationA" lane="Edge2_1" startPos="13.00" endPos="21.00"/> | ||
<chargingStation id="chargingStationB" lane="EdgeCenter1_1" startPos="34.42" endPos="41.58"/> | ||
<parkingArea id="parkingAreaA" lane="Edge2_1" startPos="22.00" endPos="32.00"/> | ||
<parkingArea id="parkingAreaB" lane="EdgeCenter0_1" startPos="16.41" endPos="26.77"/> | ||
<!-- Detectors --> | ||
<inductionLoop id="e1_0" lane="Edge4_1" pos="3.00" period="300.00" file="e1_0.xml"/> | ||
<inductionLoop id="e1_1" lane="Edge1_1" pos="27.00" period="300.00" file="e1_1.xml"/> | ||
<!-- TAZs --> | ||
<taz id="taz_green" shape="8.00,10.00 8.00,-10.00 -4.00,-10.00 -4.00,10.00 8.00,10.00" center="6.00,0.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="20.00,10.00 20.00,-10.00 42.00,-10.00 42.00,10.00 20.00,10.00" center="22.00,0.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> |
25 changes: 25 additions & 0 deletions
25
tests/netedit/elements/demands/personplan/persontrip/common/create/walk_factor/datas.netedit
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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-07-22 14:10:19 by Eclipse SUMO netedit Version v1_20_0+1736-e39e4a74e3e | ||
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 | ||
--> | ||
|
||
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd"> | ||
<interval id="dataSet" begin="0.00" end="3600.00"> | ||
<edge id="Edge0"/> | ||
<edge id="Edge1"/> | ||
<edge id="Edge2"/> | ||
<edge id="Edge3"/> | ||
<edge id="Edge4"/> | ||
<edge id="Edge5"/> | ||
</interval> | ||
</data> |
Empty file.
Empty file.
Oops, something went wrong.