Package datk :: Package core :: Module distalgs :: Class Synchronous_Algorithm
[hide private]
[frames] | no frames]

Class Synchronous_Algorithm

source code

Algorithm --+
            |
           Synchronous_Algorithm
Known Subclasses:

We assume that Processes take steps simultaneously, that is, that execution proceeds in synchronous rounds.

Instance Methods [hide private]
 
execute(self) source code
 
msgs(self) source code
 
print_algorithm_terminated(self) source code
 
round(self)
Executes a single round of the Synchronous Algorithm
source code
 
run(self, network, params={})
Executes the algorithm on the network
source code
 
trans(self) source code

Inherited from Algorithm: __call__, __init__, cleanup, cleanup_i, count_msg, delete, get, halt, halt_i, has, increment, msgs_i, output, set, trans_i

Class Variables [hide private]

Inherited from Algorithm: DEFAULT, DEFAULT_PARAMS, QUIET, SILENT, VERBOSE

Method Details [hide private]

print_algorithm_terminated(self)

source code 
Overrides: Algorithm.print_algorithm_terminated

run(self, network, params={})

source code 

Executes the algorithm on the network

Parameters:
  • network - the parameter to run in
  • params - runtime parameters
Overrides: Algorithm.run
(inherited documentation)