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.GPSS.Block

Description

Tested with: GHC 8.0.2

This module defines a GPSS block.

Synopsis

Documentation

data Block a b Source #

Represents a GPSS block.

Constructors

Block 

Fields

Instances

Category * Block Source # 

Methods

id :: cat a a #

(.) :: cat b c -> cat a b -> cat a c #

newtype GeneratorBlock a Source #

Represents a GPSS generator block.

Constructors

GeneratorBlock 

Fields

withinBlock Source #

Arguments

:: Process ()

the action to be executed for each transact

-> Block a a 

Perform some action within the block, for example, opening or inverting the Gate to emulate the LOGIC block.

traceBlock :: String -> Block a b -> Block a b Source #

Trace the specified block.