aivika-gpss-0.4: GPSS-like DSL for Aivika

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

Simulation.Aivika.Trans.GPSS.Block.Terminate

Description

Tested with: GHC 8.0.2

This module defines the GPSS block TERMINATE.

Synopsis

Documentation

terminateBlock :: MonadDES m => Block m a () Source #

This is the GPSS construct

TERMINATE

terminateBlockByCount Source #

Arguments

:: MonadDES m 
=> Ref m Int

the counter

-> Int

the decrement

-> Block m a () 

This is the GPSS construct

TERMINATE Count

terminateBlockByCountM Source #

Arguments

:: MonadDES m 
=> Ref m Int

the counter

-> Event m Int

the computation of decrement

-> Block m a () 

This is the GPSS construct

TERMINATE Count