Package datk :: Package core :: Module networks :: Class Unidirectional_Line
[hide private]
[frames] | no frames]

Class Unidirectional_Line

source code

distalgs.Network --+
                   |
                  Unidirectional_Line

A Network of n Processes arranged in a line. Each edge is directed from a Process to its clockwise neighbor, that is, messages can only be sent in a clockwise direction.

Instance Methods [hide private]
 
__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

Inherited from distalgs.Network: __getitem__, __iter__, __len__, __repr__, add, clone, draw, index, run, state

Method Details [hide private]

__init__(self, n, index_to_UID=None)
(Constructor)

source code 

Creates a network of n disconnected Processes, with random distinct UIDs, or as specified by the index_to_UID function

Overrides: distalgs.Network.__init__
(inherited documentation)