Copyright | (c) David Janin, 2016 |
---|---|
License | see the LICENSE file in the distribution |
Maintainer | janin@labri.fr |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- myTrace :: [Char] -> a -> a
- color :: Int -> [Char] -> [Char]
- colorPurple :: [Char] -> [Char]
- colorGreen :: [Char] -> [Char]
- colorRed :: [Char] -> [Char]
- data QState d iv v = QState {}
- data DelayedEvents d v = DelayedEvents !(TimeStamp d) [Event v]
- initQState :: (Num d, Ord d, Ord iv, Ord v) => (Tile (RDuration d iv) iv iv -> Tile (RDuration d iv) iv v) -> QState d iv v
- inputToQ :: (Lattice d, Num d) => InQList d iv -> QList d iv iv
- updateState :: forall d iv v. (Num d, Ord d, Ord iv, Ord v, Show d, Show v, Show iv) => QState d iv v -> DelayedEvents d iv -> (QState d iv v, [DelayedEvents d v], WakeUpOrder d)
- updateStateOnEvent :: (Num d, Ord d, Ord iv, Ord v, Show d, Show v, Show iv) => QState d iv v -> DelayedEvents d iv -> Maybe (TimeStamp d) -> (QState d iv v, [DelayedEvents d v], WakeUpOrder d)
Documentation
colorPurple :: [Char] -> [Char] Source #
colorGreen :: [Char] -> [Char] Source #
Qstate data
Embedding of qlists into event function
Initialization
initQState :: (Num d, Ord d, Ord iv, Ord v) => (Tile (RDuration d iv) iv iv -> Tile (RDuration d iv) iv v) -> QState d iv v Source #
Init a qstate from a function of tile turned into a function over QLists.
inputToQ :: (Lattice d, Num d) => InQList d iv -> QList d iv iv Source #
converts input lists to output lists
Transition loops
updateState :: forall d iv v. (Num d, Ord d, Ord iv, Ord v, Show d, Show v, Show iv) => QState d iv v -> DelayedEvents d iv -> (QState d iv v, [DelayedEvents d v], WakeUpOrder d) Source #
Updates states upon reception of list of a bundle of new events, possibly empty in case of wake up.
In updateState ts le, ts is the Qstate, le is the possibly empty list of timed stamped events (aka DelayedEvents)
updateStateOnEvent :: (Num d, Ord d, Ord iv, Ord v, Show d, Show v, Show iv) => QState d iv v -> DelayedEvents d iv -> Maybe (TimeStamp d) -> (QState d iv v, [DelayedEvents d v], WakeUpOrder d) Source #
The kernel update step upon reception of list of non empty bundle of new events