getState

network.getState(nodeNumber)
Return the current states of a node.
nodeNumber : integer
The number of the node, whose state is to be returned.

Example (python-conedy)

import conedy as co

N = co.network()

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

N.setState (0, 0.1, 0.2 ,0.3)

print "Should be 0.1 0.2 0.3:" + str(N.getState (i,0)) + " " + str(N.getState (i,1)) + " " + str(N.getState (i,2))

Example (conedy)

network N;

int i = N.addNode(roessler());

N.setState (0, 0.1, 0.2 ,0.3);

print "Should be 0.1 0.2 0.3: " + N.getState (i, 0) + " " + N.getState (i, 1) + " " + N.getState (i, 2) + newline;

Table Of Contents

Previous topic

getParam

Next topic

isConnected