creatur-5.9.19: Framework for artificial life experiments.

Copyright(c) Amy de Buitléir 2012-2016
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

ALife.Creatur

Description

Definitions used throughout the Créatúr framework.

Synopsis

Documentation

class Record a => Agent a where Source #

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

Minimal complete definition

isAlive

Methods

agentId :: a -> AgentId Source #

Returns the agent ID.

isAlive :: a -> Bool Source #

Returns True if the agent is alive, false otherwise.

type AgentId = String Source #

A unique ID associated with an agent.

type Time = Int Source #

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