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

Class Chain

source code

Algorithm --+
            |
           Chain

An Algorithm that is the result of sequentially running two algorithms

Instance Methods [hide private]
 
__init__(self, A, B, name=None, params=None) source code
 
run(self, network, params={})
Executes the algorithm on the network
source code
 
__repr__(self) source code

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

Class Variables [hide private]

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

Method Details [hide private]

__init__(self, A, B, name=None, params=None)
(Constructor)

source code 
Parameters:
  • A - an instance of Algorithm
  • B - an instance of Algorithm
  • name - [Optional] name of the Algorithm. Defaults to Chain(A.name, B.name)
  • params - [Optional] Runtime parameters
Overrides: Algorithm.__init__

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)