A collection of Processes that know n, the # of processes in the
network.
|
|
|
__init__(self,
n,
index_to_UID=None)
Creates a network of n disconnected Processes, with random distinct
UIDs, or as specified by the index_to_UID function |
source code
|
|
|
|
|
|
|
|
|
add(self,
algorithm)
Awakens all Processes in the Network with respect to algorithm |
source code
|
|
|
|
|
|
|
|
|
run(self,
algorithm)
Runs algorithm on the Network |
source code
|
|
|
state(self)
Returns:
A text representation of the state of all the Processes in the
Network |
source code
|
|