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

Description

Tested with: GHC 8.0.2

This module defines a GPSS block.

Synopsis

Documentation

newtype Block a b Source #

Represents a GPSS block.

Constructors

Block 

Fields

Instances

Instances details
Category Block Source # 
Instance details

Defined in Simulation.Aivika.GPSS.Block

Methods

id :: forall (a :: k). Block a a #

(.) :: forall (b :: k) (c :: k) (a :: k). Block b c -> Block a b -> Block 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.

processBlock Source #

Arguments

:: (a -> Process b)

process the transact

-> Block a b 

Process every transact within the block.

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

Trace the specified block.