aivika-gpss-0.6.2: GPSS-like DSL for Aivika
CopyrightCopyright (c) 2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Simulation.Aivika.Trans.GPSS.Block.Link

Description

Tested with: GHC 8.0.2

This module defines an analog of the GPSS block LINK.

Synopsis

Documentation

linkBlock Source #

Arguments

:: MonadDES m 
=> (a -> Process m (Either (Block m a ()) Bool))

try to link the transact and return either the next block to transfer or a flag indicating whether the transact process should be passivated in case of successful linking, i.e. storing in the queue

-> Block m a a 

This is an analog of the GPSS construct

LINK A,B,C