Table of Contents

Class: Topology cage.py

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 )

Exceptions   
NotImplementedError
  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.

Exceptions   
NotImplementedError
  get 
get ( self,  address )

Get the state of the cell at address.

Exceptions   
NotImplementedError
  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.

Exceptions   
NotImplementedError
  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.

Exceptions   
NotImplementedError

Table of Contents

This document was automatically generated on Sat Jul 29 13:31:37 2006 by HappyDoc version 2.1