aivika-experiment-0.4: Simulation experiments for the Aivika library

Stabilityexperimental
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Safe HaskellNone

Simulation.Aivika.Experiment.ListSource

Description

Tested with: GHC 7.6.3

It represents an optimized source of data to construct the list.

Synopsis

Documentation

data ListSource a Source

Represents the optimized source of data for constructing the list.

providerToDoubleListSource :: SeriesProvider -> Maybe (ListSource Double)Source

Try to return the source of list data by the specified provider.

providerToIntListSource :: SeriesProvider -> Maybe (ListSource Int)Source

Try to return the source of list data by the specified provider.

data ListData a Source

Represents the optimized data by which the list will be created.

listSourceData :: ListSource a -> Event (ListData a)Source

Get data from the source in the current time point.

listDataList :: ListData a -> [a]Source

Return the list of values contained in the specified data.

data ListRef a Source

Represents a reference to the list, optimized to work with the source of data.

newListRef :: IO (ListRef a)Source

Create a new list reference.

addDataToListRef :: ListRef a -> ListData a -> IO ()Source

Add data to the list reference.

readListRef :: ListRef a -> IO [a]Source

Read the list contained in the reference.