Table of Contents

Module: cage cage.py

A full-featured, generic cellular automata engine in Python.

Imported modules   
import operator
import random
import types
Classes   

Agent

An agent is an arbitrary object that can roam around on a map,

AgentAutomaton

An automaton intended only for use by agents; no underlying

AsynchronousAutomaton

An asynchronous automaton uses one map and updates each cell in

Automaton

An automaton joins together the map, the number of possible

CardinalDirection

A cardinal direction: one of the four primary compass points.

CircleTopology

A one-dimensional, unbounded topology consisting of a line of

CodedTotalisticRule

A two-state totalistic rule, expressed in terms of two sets (a

ConwayAutomaton

Conway's Game of Life, with an optional flag for 'high life.

CursesPlayer

A curses player displays a two-dimensional automaton with some

Direction

A generalized direction on a 2-dimensional topology. For use

GridTopology

A two-dimensional, bounded topology consisting of a rectangular

HexagonalDirection

An hexagonal direction, analogous to hexagonal neighborhoods.

HexagonalNeighborhood

A two-dimensional, hexagonally-shaped neighborhood.

ImagePlayer

Initializer

An initializer simply sets up the contents of a network before

KnightsMap

A standard two-dimensional, knight's neighborhood map.

KnightsNeighborhood

A two-dimensional neighborhood encompassing all the legal moves

LineMap

A standard one-dimensional, line map.

LinePlayer

A line player displays a one-dimensional automaton with one row

LineTopology

A one-dimensional, bounded topology consisting of a line of

LinearCodedAutomaton

A two-state, synchronous automaton with a linear coded rule

LinearCodedRule

A linear coded rule is one which enumerates all possible rules.

MooreMap

A standard two-dimensional, Moore map.

MooreNeighborhood

The Moore neighborhood. A two-dimensional neighborhood

Neighborhood

The abstraction of a neighbhorhood, or the set of cells that

NullNeighborhood

A null neighborhood, literally consisting of no neighbors

OrdinalDirection

A cardinal or ordinal direction: any of the eight compass points.

PatternInitializer

A pattern initializer takes a (two-dimensional) pattern and

Player

Players simple orchestrate the running of an automaton and

PointInitializer

A point initializer starts with an initially blank grid and

RadialMap

A standard one-dimensional, radial map.

RadialNeighborhood

A one-dimensional neighborhood consisting of the cells to the

RandomInitializer

A random initializer sets all the cells in the network to some

ReductionRule

A reduction rule takes the list of states and reduces them

Rule

The rule is an optional mixin class (intended to be mixed in

SeedInitializer

A seed initializer places count cells of the specific state in

StringInitializer

A pattern initializer that takes a list of ASCII strings

SynchronousAutomaton

A synchronous automaton updates all cells simultaneously (that

TextPlayer

Core routines for text-related players.

Topology

A topology is the encapsulation of the shape and dimensionality

ToroidTopology

A two-dimensional, unbounded topology consisting of a

TwoStateAutomaton

A two-state automaton is a synchronous automaton that has, not

TwoStateReductionAutomaton

A two-state, synchronous automaton with a reduction rule.

TwoStateTotalisticAutomaton

A two-state, synchronous automaton with a Moore map and the

VonNeumannMap

A standard two-dimensional, von Neumann map.

VonNeumannNeighborhood

The von Neumann neighborhood. A two-dimensional neighborhood


Table of Contents

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