netedit.modifyAttribute(1, "gneE2_0") # Change parameter 2 with a non valid value (negative) netedit.modifyAttribute(2, "-5") # Change parameter 2 with a non valid value (> endPos) netedit.modifyAttribute(2, "400") # Change parameter 2 with a valid value netedit.modifyAttribute(2, "20") # Change parameter 3 with a non valid value (out of range, and not accepted) netedit.modifyAttribute(3, "3000") # Answer "no" to the answer dialog netedit.waitQuestion("n") # Change parameter 3 with a valid value (out of range, but adapted to the # end of lane) netedit.modifyAttribute(3, "3000") # Answer "yes" to the answer dialog netedit.waitQuestion("y") # Change parameter 3 with a non valid value (<startPos) netedit.modifyAttribute(3, "10") # Change parameter 3 with a valid value netedit.modifyAttribute(3, "30") # Change parameter 4 with a non valid value (throw warning)
netedit.undo(match, 1) # rebuild network netedit.rebuildNetwork() # go to select mode netedit.selectMode() # unselect node 2 netedit.leftClick(match, 315, 220) # join selected junctions netedit.joinSelectedJunctions() # abort joining netedit.waitQuestion('n') # join selected junctions netedit.joinSelectedJunctions() # allow joining netedit.waitQuestion('y') # rebuild network netedit.rebuildNetwork() # Undo joining netedit.undo(match, 1) # rebuild network netedit.rebuildNetwork()
netedit.modifyAttribute(parametersReference, 1, "gneE2_0") # Change parameter 2 with a non valid value (negative) netedit.modifyAttribute(parametersReference, 2, "-5") # Change parameter 2 with a non valid value (> endPos) netedit.modifyAttribute(parametersReference, 2, "400") # Change parameter 2 with a valid value netedit.modifyAttribute(parametersReference, 2, "20") # Change parameter 3 with a non valid value (out of range, and not accepted) netedit.modifyAttribute(parametersReference, 3, "3000") # Answer "no" to the answer dialog netedit.waitQuestion("n") # Change parameter 3 with a valid value (out of range, but adapted to the end of lane) netedit.modifyAttribute(parametersReference, 3, "3000") # Answer "yes" to the answer dialog netedit.waitQuestion("y") # Change parameter 3 with a non valid value (<startPos) netedit.modifyAttribute(parametersReference, 3, "10") # Change parameter 3 with a valid value netedit.modifyAttribute(parametersReference, 3, "30") # Change parameter 4 with a non valid value 1 netedit.modifyAttribute(parametersReference, 4, "dummyPower")