aivika-transformers-6.0.0: Transformers for the Aivika simulation library
CopyrightCopyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simulation.Aivika.Trans.Observable

Description

Tested with: GHC 8.0.1

This module defines an observable entity, which value can be read within some computation.

Synopsis

Documentation

class Observable o m where Source #

A class of observable entities.

Methods

readObservable :: o a -> m a Source #

Read the observable entity value within the specified computation.

Instances

Instances details
(MonadDES m, Observable (Ref m) (t m)) => Observable (Ref m) (t m) Source # 
Instance details

Defined in Simulation.Aivika.Trans.Ref

Methods

readObservable :: Ref m a -> t m a Source #

(Monad m, MonadRef m) => Observable (Ref m) (Event m) Source # 
Instance details

Defined in Simulation.Aivika.Trans.Ref.Base.Lazy

Methods

readObservable :: Ref m a -> Event m a Source #

(Monad m, MonadRef m) => Observable (Ref m) (Event m) Source # 
Instance details

Defined in Simulation.Aivika.Trans.Ref.Base.Strict

Methods

readObservable :: Ref m a -> Event m a Source #