Example #1
0
    public void execCycle()
    {
        for (int i = 0; i < placeList.Count; i++)
        {
            Scr_Place p = placeList[i];
            p.checkReady();
        }

        for (int i = 0; i < transitionList.Count; i++)
        {
            Scr_Transition t = transitionList[i];
            t.checkReady();
        }

        for (int i = 0; i < transitionList.Count; i++)
        {
            Scr_Transition t = transitionList[i];
            if (t.isReady())
            {
                t.fire();
            }
        }
    }