creatur-5.2.0: Framework for artificial life experiments.

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellNone

ALife.Creatur.AgentNamer

Description

Assigns a unique ID upon request. IDs generated by an AgentNamer are guaranteed to be unique within a given universe, across all simulation runs.

Documentation

class AgentNamer n whereSource

Methods

genName :: StateT n IO AgentIdSource

Assign a unique ID using the supplied prefix.