aivika-transformers-4.3.2: Transformers for the Aivika simulation library

CopyrightCopyright (c) 2009-2015, David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Simulation.Aivika.IO.Signal

Contents

Description

Tested with: GHC 7.10.1

This module allows collecting the signal history.

Synopsis

Signal History

data SignalHistory m a Source

Represents the history of the signal values.

signalHistorySignal :: SignalHistory m a -> Signal m a Source

The signal for which the history is created.

newSignalHistory :: (MonadDES m, MonadIO m, MonadTemplate m) => Signal m a -> Event m (SignalHistory m a) Source

Create a history of the signal values.

newSignalHistoryStartingWith :: (MonadDES m, MonadIO m, MonadTemplate m) => Maybe a -> Signal m a -> Event m (SignalHistory m a) Source

Create a history of the signal values starting with the optional initial value.

readSignalHistory :: (MonadDES m, MonadIO m, MonadTemplate m) => SignalHistory m a -> Event m (Array Int Double, Array Int a) Source

Read the history of signal values.