creatur-5.7.0: Framework for artificial life experiments.

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

ALife.Creatur.EnergyPool

Description

An exhaustible resource which persists between runs.

Synopsis

Documentation

class EnergyPool e where Source

Methods

replenish :: Double -> StateT e IO () Source

withdraw :: Double -> StateT e IO Double Source

available :: StateT e IO Double Source

mkPersistentEnergyPool :: FilePath -> PersistentEnergyPool Source

Creates a resource that will store its value in the specified file.