aivika-distributed-0.1.3: Parallel distributed simulation library

CopyrightCopyright (c) 2015-2016, David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Simulation.Aivika.Distributed.Optimistic.Event

Description

Tested with: GHC 7.10.3

This module defines additional functions for the Event computation.

Synopsis

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.