A topology is the encapsulation of the shape and dimensionality
of a cellular network. Note: Topologies and neighborhoods are
used as mixins to create a map.
Methods
|
|
__init__
center
clone
get
isNormalized
normalize
random
reset
set
|
|
__init__
|
__init__ ( self, size )
|
|
center
|
center ( self )
A cell that's roughly in the center of the topology.
|
|
clone
|
clone ( self )
Make a morphologically identical copy (with perhaps a different
cell configuration). This is for CAs which need to manage multiple
morphologically identical topologies, such as synchronous automata
(the most common kind). This should be overridden at the Map
level.
|
|
get
|
get ( self, address )
Get the state of the cell at address.
|
|
isNormalized
|
isNormalized ( self, address )
Is the address already normalized?
|
|
normalize
|
normalize ( self, address )
Normalize an address (in the case of multiply-connected topologies,
or None if the address cannot be normalized.
|
|
random
|
random ( self )
Create a random valid (normalized) address in this topology.
|
|
reset
|
reset ( self, address )
Reset the state of the cell to the background.
|
|
set
|
set (
self,
address,
state,
)
Set the state of the cell at addess.
|