|
| Control.Hasim.Simulation | | Portability | unportable | | Stability | experimental | | Maintainer | jochem@functor.nl |
|
|
|
|
|
| Description |
| This module defines the Simulation monad, with
functions to create processes and set actions.
|
|
| Synopsis |
|
|
|
|
| Data types
|
|
|
| Data type representing a simulation.
|
|
|
|
| The simulation monad called SimMonad. In this
monad you can define a simulation to be run.
|
|
|
|
| Process creation
|
|
|
| Make an anonymous process.
|
|
|
| :: | | | => String | The name of the new process.
| | -> st | The initial state of the process.
| | -> SimMonad (Proc pkt st) | | | Make a process with a name. This name will be used
in logging and error messages
|
|
|
|
| :: | | | => Proc pkt st | The process of which the action should be set
| | -> Action pkt st () | The action to be set
| | -> SimMonad () | | | Set the action of the process.
|
|
|
| Simulation creation
|
|
|
| Create a simulation from a SimMonad (a simulation definition).
If the simulation is invalid, error will be called.
|
|
| Produced by Haddock version 2.3.0 |