A computing element located at a node of a network graph. Processes
are identical except for their UID
|
__init__(self,
UID,
state=None,
in_nbrs=[ ] ,
out_nbrs=[ ] ) |
source code
|
|
|
link_to(self,
new_out_nbr)
Adds a new outgoing neighbor of the Process |
source code
|
|
|
bi_link(self,
nbr)
Adds a new out_nbr of the Process, and adds the Process as an out_nbr
of that neighbor |
source code
|
|
|
output(self,
key,
val,
verbose=True)
Sets the publicly visible value of self.state[key] to val |
source code
|
|
|
|
|
send_msg(self,
msg,
out_nbrs=None)
Sends a Message from Process to some subset of out_nbrs |
source code
|
|
|
get_msgs(self,
algorithm,
in_nbrs=None)
Removes all Messages that relate to a particular Algorithm from the
Process' incoming channels (or from some subset of incoming
channels). |
source code
|
|
|
add(self,
algorithm)
Causes the Process to wake up with respect to algorithm |
source code
|
|
|
terminate(self,
algorithm)
Causes the Process to halt execution of algorithm |
source code
|
|
|
|
|
|