aivika-distributed-0.7.3: Parallel distributed discrete event simulation module for the Aivika library

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

Simulation.Aivika.Distributed.Optimistic.Message

Description

Tested with: GHC 7.10.3

This module defines functions for working with messages.

Synopsis

Documentation

sendMessage :: forall a. Serializable a => ProcessId -> a -> Event DIO () Source #

Send a message to the specified remote process with the current receive time.

enqueueMessage :: forall a. Serializable a => ProcessId -> Double -> a -> Event DIO () Source #

Send a message to the specified remote process with the given receive time.

messageReceived :: forall a. Serializable a => Signal DIO a Source #

The signal triggered when the remote message of the specified type has come.