creatur-5.9.30: Framework for artificial life experiments.
Copyright(c) 2012-2021 Amy de Buitléir
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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.