Copyright | Copyright (c) 2015-2016, 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 7.10.3
This module defines additional functions for the Event
computation.
Documentation
syncEvent :: Double -> Event DIO () -> Event DIO () Source
Synchronize the simulation in all nodes and call the specified computation at the given modeling time.
It is rather safe to put liftIO
within this function.
syncEventInStopTime :: Event DIO () -> Simulation DIO () Source
Synchronize the simulation in all nodes and call the specified computation in the stop time.
The modeling time must be initial when calling this function. Also this call must be last in your part of the model.
It is rather safe to call liftIO
within this function.