Copyright | Copyright (c) 2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
Tested with: GHC 8.0.2
This module defines the GPSS block GENERATE.
- streamGeneratorBlock0 :: MonadDES m => Stream m (Arrival a) -> GeneratorBlock m (Transact m a)
- streamGeneratorBlock :: MonadDES m => Stream m (Arrival a) -> Int -> GeneratorBlock m (Transact m a)
- streamGeneratorBlockM :: MonadDES m => Stream m (Arrival a) -> Event m Int -> GeneratorBlock m (Transact m a)
Documentation
streamGeneratorBlock0 Source #
:: MonadDES m | |
=> Stream m (Arrival a) | the input stream of data |
-> GeneratorBlock m (Transact m a) |
Return a generator block by the specified stream using zero priority.
:: MonadDES m | |
=> Stream m (Arrival a) | the input stream of data |
-> Int | the transact priority |
-> GeneratorBlock m (Transact m a) |
Return a generator block by the specified stream and priority.
streamGeneratorBlockM Source #
:: MonadDES m | |
=> Stream m (Arrival a) | the input stream of data |
-> Event m Int | the transact priority |
-> GeneratorBlock m (Transact m a) |
Return a generator block by the specified stream and priority computation.