Copyright | Copyright (c) 2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
Tested with: GHC 8.0.2
This module defines the GPSS block Preempt.
- preemptBlock :: Facility a -> PreemptBlockMode a -> Block (Transact a) (Transact a)
- data PreemptBlockMode a = PreemptBlockMode {
- preemptBlockPriorityMode :: Bool
- preemptBlockTransfer :: Maybe (Maybe Double -> Block (Transact a) ())
- preemptBlockRemoveMode :: Bool
- defaultPreemptBlockMode :: PreemptBlockMode a
- toFacilityPreemptMode :: PreemptBlockMode a -> FacilityPreemptMode a
- fromFacilityPreemptMode :: FacilityPreemptMode a -> PreemptBlockMode a
Documentation
:: Facility a | the facility |
-> PreemptBlockMode a | the Preempt block mode |
-> Block (Transact a) (Transact a) |
This is the GPSS construct
PREEMPT A,B,C,D,E
data PreemptBlockMode a Source #
Specifies the Preempt block mode.
PreemptBlockMode | |
|
defaultPreemptBlockMode :: PreemptBlockMode a Source #
The default Preempt block mode.
toFacilityPreemptMode :: PreemptBlockMode a -> FacilityPreemptMode a Source #
Convert PreemptBlockMode
to FacilityPreemptMode
.
fromFacilityPreemptMode :: FacilityPreemptMode a -> PreemptBlockMode a Source #
Convert PreemptBlockMode
from FacilityPreemptMode
.