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

CopyrightCopyright (c) 2015-2018 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 contains some Event computations.

Synopsis

Documentation

leaveSimulation :: Event DIO () Source #

Try to leave the simulation.

It enqueues a new event with obligatory synchronization with the global virtual time. If that event will not be reverted during rollback, then the logical process will leave the simulation immediately after approaching the final modeling time without synchronization with the global virtual time anymore if it has no unacknowledged sent messages.

It makes sense to use this action if logical processes can enter and leave your long-running distributed simulation by demand.