creatur-5.2.7: Framework for artificial life experiments.

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellNone

ALife.Creatur

Description

Definitions used throughout the Créatúr framework.

Synopsis

Documentation

class Record a => Agent a whereSource

An artificial life species. All species used in Créatúr must be an instance of this class.

Methods

agentId :: a -> AgentIdSource

Returns the agent ID.

isAlive :: a -> BoolSource

Returns True if the agent is alive, false otherwise.

type AgentId = StringSource

A unique ID associated with an agent.

type Time = IntSource

The internal clock used by Créatúr is a simple counter.