# inspect eight node netedit.leftClick(match, 340, 180) # change shape of junction netedit.modifyAttribute( 4, "52.85,50.00 50.54,43.93 50.50,43.16 46.01,38.46 45.53,38.12 39.59,35.49") # inspect eleven node netedit.leftClick(match, 350, 275) # change radio netedit.modifyAttribute(5, "2") # change keep clear netedit.modifyBoolAttribute(6) # rebuild network netedit.rebuildNetwork() # Check undo netedit.undo(match, 22) # rebuild network netedit.rebuildNetwork() # Check redo netedit.redo(match, 22) # save additionals netedit.saveAdditionals()
netedit.selectionInvert() # go to inspect mode netedit.inspectMode() # inspect POIs netedit.leftClick(match, 350, 100) # Set invalid color netedit.modifyAttribute(0, "Jren") # Set valid color netedit.modifyAttribute(0, "green") # change fill netedit.modifyBoolAttribute(1) # Set invalid layer netedit.modifyAttribute(2, "dummyLayer") # Set layer netedit.modifyAttribute(2, "1") # Set type netedit.modifyAttribute(3, "common type") # Set invalid imgfile netedit.modifyAttribute(4, "paris.ico") # Set empty imgfile netedit.modifyAttribute(4, "")
netedit.leftClick(match, 240, 250) # change to move mode netedit.moveMode() # move E2 to right netedit.moveElement(match, 120, 250, 220, 250) # go to inspect mode netedit.inspectMode() # inspect E2 netedit.leftClick(match, 350, 250) # block additional netedit.modifyBoolAttribute(12) # change to move mode netedit.moveMode() # try to move E2 to right (must be blocked) netedit.moveElement(match, 250, 250, 350, 250) # go to inspect mode netedit.inspectMode() # inspect E2 netedit.leftClick(match, 350, 250) # unblock additional netedit.modifyBoolAttribute(12)
netedit.modifyAttribute(2, "20") # Change parameter 3 with a valid value (out of range) netedit.modifyAttribute(3, "3000") # 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 valid value netedit.modifyAttribute(4, "chargingStation") # Change parameter 4 with a different value netedit.modifyBoolAttribute(5) # Change parameter 5 with a non valid value 1 netedit.modifyAttribute(6, "dummyPower") # Change parameter 5 with a non valid value 2 netedit.modifyAttribute(6, "-100") # Change parameter 5 with a valid value netedit.modifyAttribute(6, "10000") # Change parameter 6 with a non valid value 1 netedit.modifyAttribute(7, "dummyEfficiency") # Change parameter 6 with a non valid value 2 netedit.modifyAttribute(7, "-1")
netedit.modifyAttribute(parametersReference, 4, "-100") # Change parameter 4 with a valid value netedit.modifyAttribute(parametersReference, 4, "120") # Change parameter 5 with an empty value netedit.modifyAttribute(parametersReference, 5, "") # Change parameter 5 with a duplicated value netedit.modifyAttribute(parametersReference, 5, "E2Detector_gneE2_1_1.txt") # Change parameter 5 with a valid value netedit.modifyAttribute(parametersReference, 5, "myOwnOutput.txt") # Change boolean parameter 6 netedit.modifyBoolAttribute(parametersReference, 6) # Change parameter 7 with a non valid value netedit.modifyAttribute(parametersReference, 7, "dummyTimeTreshold") # Change parameter 7 with a non valid value netedit.modifyAttribute(parametersReference, 7, "-5") # Change parameter 7 with a valid value netedit.modifyAttribute(parametersReference, 7, "4") # Change parameter 8 with a non valid value netedit.modifyAttribute(parametersReference, 8, "dummySpeedTreshold") # Change parameter 8 with a non valid value netedit.modifyAttribute(parametersReference, 8, "-12.1")
netedit.modifyAttribute(19, "dummyShapeEnd") # Change parameter 19 with a non valid value (incomplete) netedit.modifyAttribute(19, "24") # Change parameter 19 with a duplicated value (See #3157) netedit.modifyAttribute(19, "14,15.5") # Change parameter 19 with a valid value (empty) netedit.modifyAttribute(19, "") # Change parameter 19 with a valid value netedit.modifyAttribute(19, "34,15.5") # Change parameter 20 with a valid value netedit.modifyBoolAttribute(20) # recompute netedit.rebuildNetwork() # Check undos netedit.undo(match, 18) # recompute netedit.rebuildNetwork() # check redos netedit.redo(match, 18) # save additionals netedit.saveAdditionals()
netedit.modifyAttribute(0, "") # Change parameter 0 with a valid value (other lane) netedit.modifyAttribute(0, "gneE3_1") # Change parameter 1 with a non valid value (dummy position X) netedit.modifyAttribute(1, "dummy position") # Change parameter 1 with a non valid value (empty) netedit.modifyAttribute(1, "") # Change parameter 1 with a valid value (different position X) netedit.modifyAttribute(1, "25") # Change boolean parameter 2 netedit.modifyBoolAttribute(2) # Change parameter 1 with a non valid value (Invalid E3 ID) netedit.modifyAttribute(3, "invalidE3") # Change parameter 1 with a non valid value (Invalid E3 ID) netedit.modifyAttribute(3, "e3Detector_1") # Change boolean parameter 4 (block) netedit.modifyBoolAttribute(4) # Check undos and redos netedit.undo(match, 8) netedit.redo(match, 8) # save additionals
netedit.selectionInvert() # go to inspect mode netedit.inspectMode() # inspect POIs netedit.leftClick(match, 350, 100) # Set invalid color netedit.modifyAttribute(1, "Jren") # Set valid color netedit.modifyAttribute(1, "green") # change fill netedit.modifyBoolAttribute(2) # Set invalid layer netedit.modifyAttribute(3, "dummyLayer") # Set layer netedit.modifyAttribute(3, "1") # Set type netedit.modifyAttribute(4, "common type") # Set invalid imgfile netedit.modifyAttribute(5, "paris.ico") # Set empty imgfile netedit.modifyAttribute(5, "")
netedit.modifyAttribute(parametersReference, 4, "10000") # Change parameter 5 with a non valid value 1 netedit.modifyAttribute(parametersReference, 5, "dummyEfficiency") # Change parameter 5 with a non valid value 2 netedit.modifyAttribute(parametersReference, 5, "-1") # Change parameter 5 with a non valid value 3 netedit.modifyAttribute(parametersReference, 5, "2") # Change parameter 5 with a valid value netedit.modifyAttribute(parametersReference, 5, "0.90") # Change parameter 6 (bool) netedit.modifyBoolAttribute(parametersReference, 6) # Change parameter 7 with a non valid value 1 netedit.modifyAttribute(parametersReference, 7, "dummyChargeDelay") # Change parameter 7 with a non valid value 2 netedit.modifyAttribute(parametersReference, 7, "-10") # Change parameter 7 with a valid value netedit.modifyAttribute(parametersReference, 7, "3") # go to a empty area click(match) # Check undos and redos netedit.undo(match, 17)
netedit.leftClick(match, 125, 250) # Change lenght netedit.modifyAttribute(comboboxAdditional, 2, "5") # create E2 with different lenght netedit.leftClick(match, 250, 250) # Change frequency netedit.modifyAttribute(comboboxAdditional, 3, "120") # create E2 with different frequency netedit.leftClick(match, 350, 250) # Change cont netedit.modifyBoolAttribute(comboboxAdditional, 4) # create E2 with different cont netedit.leftClick(match, 450, 250) # Change time threshold netedit.modifyAttribute(comboboxAdditional, 5, "10") # create E2 with different time threshold netedit.leftClick(match, 150, 220) # Change speed threshold netedit.modifyAttribute(comboboxAdditional, 6, "2.5") # create E2 with different speed threshold netedit.leftClick(match, 250, 220)
comboboxAdditional = netedit.getComboBoxAdditional(match) # select E1 netedit.changeAdditional(comboboxAdditional, 6) # create E1 with default parameters netedit.leftClick(match, 200, 250) # Change frequency netedit.modifyAttribute(comboboxAdditional, 2, "150") # create E1 with different frequency netedit.leftClick(match, 250, 250) # Change frequency netedit.modifyBoolAttribute(comboboxAdditional, 3) # create E1 with different split by type netedit.leftClick(match, 300, 250) # Check undo redo netedit.undo(match, 3) netedit.redo(match, 3) # save additionals netedit.saveAdditionals() # save newtork netedit.saveNetwork() # quit netedit
# select all using invert netedit.selectionInvert() # go to inspect mode netedit.inspectMode() # inspect Access netedit.leftClick(match, 275, 242) # Change lenght (invalid) netedit.modifyAttribute(0, "-30") netedit.modifyAttribute(0, "5") # Change friendly position netedit.modifyBoolAttribute(1) # Change block movement netedit.modifyBoolAttribute(3) # Check undo redo netedit.undo(match, 3) netedit.redo(match, 3) # save additionals netedit.saveAdditionals() # save network netedit.saveNetwork() # quit netedit
netedit.modifyAttribute(0, "7") # Set invalid freq netedit.modifyAttribute(1, "-30") # Set valid freq netedit.modifyAttribute(1, "50") # set invalid filename netedit.modifyAttribute(2, "&&&&&&&&") # set valid filename netedit.modifyAttribute(2, "myOwnFilename.txt") # Set cont netedit.modifyBoolAttribute(3) # Set invalid time speed treshold netedit.modifyAttribute(4, "-5") # Set valid time speed treshold netedit.modifyAttribute(4, "11.3") # Set invalid speed speed treshold netedit.modifyAttribute(5, "-3") # Set valid speed speed treshold netedit.modifyAttribute(5, "4") # Set invalid jam speed treshold netedit.modifyAttribute(6, "-6")