Exemple #1
0
        public StatusNode insert(Transition surrounding, EventNode ev)
        {
            var prev = surrounding.prev;
            var here = surrounding.here;

            var node = new StatusNode()
            {
                ev = ev
            };

            node.prev = prev;
            node.next = here;
            prev.next = node;

            if (here != null)
            {
                here.prev = node;
            }

            return(node);
        }
Exemple #2
0
        private bool findTransitionPredicate(EventNode ev, StatusNode here)
        {
            var comp = statusCompare(ev, here.ev);

            return(comp > 0);
        }