creatur-5.4.2: Framework for artificial life experiments.
ALife.Creatur
Description
Definitions used throughout the Créatúr framework.
Synopsis
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.
programVersion :: StringSource