comboboxAdditional = netedit.getComboBoxAdditional(match) # select E1 netedit.changeAdditional(comboboxAdditional, 6) # create E1 netedit.leftClick(match, 250, 250) # change to move mode netedit.moveMode() # move E1 to right netedit.moveElement(match, 120, 250, 250, 250) # Change to inspect mode netedit.inspectMode() # inspect E1 netedit.leftClick(match, 350, 250) # obtain parameters reference parametersReference = netedit.getParametersReference(match) # block additional netedit.changeBlockAdditional(comboboxAdditional, 6) # change to move mode netedit.moveMode() # try to move E1 to right (must be blocked) netedit.moveElement(match, 250, 250, 350, 250)
netedit.additionalMode() # select chargingStation netedit.changeAdditional("chargingStation") # change reference to center netedit.modifyAdditionalDefaultValue(7, "reference center") # create chargingStation 1 in mode "reference center" netedit.leftClick(match, 250, 150) # create chargingStation 2 in mode "reference center" netedit.leftClick(match, 450, 150) # go to inspect mode netedit.inspectMode() # inspect first chargingStation netedit.leftClick(match, 250, 150) # Change parameter 0 with a non valid value (Duplicated ID) netedit.modifyAttribute(0, "chargingStation_gneE2_1_1") # Change parameter 0 with a valid value netedit.modifyAttribute(0, "correct ID") # Change parameter 1 with a non valid value (dummy lane) netedit.modifyAttribute(1, "dummy lane") # Change parameter 1 with a valid value (different edge) netedit.modifyAttribute(1, "gneE0_0")