| Copyright | Copyright (c) 2009-2017 David Sorokin <david.sorokin@gmail.com> |
|---|---|
| License | BSD3 |
| Maintainer | David Sorokin <david.sorokin@gmail.com> |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Simulation.Aivika.Channel
Description
Synopsis
- newtype Channel a b = Channel {
- runChannel :: Signal a -> Composite (Signal b)
- delayChannel :: Double -> Channel a a
- delayChannelM :: Event Double -> Channel a a
- sinkSignal :: Signal a -> Composite ()
- traceChannel :: String -> Channel a b -> Channel a b
Channel Computation
It allows representing a signal transformation.
Constructors
| Channel | |
Fields
| |
Delay Channel
Return a delayed signal.
This is actually the delaySignal function wrapped in the Channel type.
Like delayChannel, but it re-computes the delay each time.
This is actually the delaySignalM function wrapped in the Channel type.
Sinking Signal
sinkSignal :: Signal a -> Composite () Source #
Sink the signal. It returns a computation that subscribes to the signal and then ignores the received data. The resulting computation can be a moving force to simulate the whole system of the interconnected signals and channels.