setParam

network.setParam(nodeNumber, parameterName, value)
Sets the parameter value of a node.
nodeNumber : int
The number of the node whoose parameter value is set.
parameterName : string
The name of the parameter which is set.
value : float
The value the parameter is set to.

Example (python-conedy)

import conedy as co

N = co.network()

nodeNumber = N.addNode (co.roessler())

N.setParam (nodeNumber, "roessler_omega", 0.92)


print "Should be 0.92:" + str(N.getParam(nodeNumber, "roessler_omega"))

Example (conedy)

network N;

int nodeNumber;


nodeNumber = N.addNode (roessler());

N.setParam (nodeNumber, "roessler_omega", 0.92);

print "Should be 0.92:" + N.getParam(nodeNumber, "roessler_omega") + newline;

Table Of Contents

Previous topic

removeObserver

Next topic

setState