tcalculus-1.0.0: A DSL prototype for structured realtime/reactive functional programing

Copyright(c) Simon Archipoff, David Janin, 2016
Licensesee the LICENSE file in the distribution
Maintainerjanin@labri.fr
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Runtime.EventAndQList

Contents

Description

 

Synopsis

Documentation

eventsToDelayedEvents :: (Ord d, Num d, Ord v, Ord iv) => [(RDuration d iv, Event v)] -> [DelayedEvents d v] Source #

Transforms a timed event list into a list of timed events

delayEventsToEvents :: (Ord d, Num d, Ord v, Ord iv) => [DelayedEvents d v] -> [(RDuration d iv, Event v)] Source #

Transforms a list of timed events into a timed event list

loopQState :: (Num d, Ord d, Ord iv, Ord v, POrd v, Show d, Show v, Show iv) => DelayedEvents d iv -> StateT (QState d iv v, WakeUpOrder d) (Writer [DelayedEvents d v]) () Source #

Loops qState (testing purposes)

runFunOnQList :: (Num d, Ord iv, Ord v, Ord d, POrd iv, POrd v, Show d, Show iv, Show v) => (RTile d iv iv -> RTile d iv v) -> RQList d iv iv -> RQList d iv v Source #

Runs a function over qlist through events exchanges (testing purposes)

runFunOnBundles :: (Num d, Ord v, Ord d, Ord iv, Show iv, Show d, Show v, POrd v) => (Tile (RDuration d iv) iv iv -> Tile (RDuration d iv) iv v) -> [DelayedEvents d iv] -> [DelayedEvents d v] Source #

runFunOnTile :: (Num d, Ord iv, Ord v, Ord d, POrd iv, POrd v, Show d, Show iv, Show v) => (RTile d iv iv -> RTile d iv v) -> RTile d iv iv -> RTile d iv v Source #

Runs a function over tiles through events exchanges (testing purposes)

For test purpose