Beispiel #1
0
    public bool removePlace(Scr_Place target)
    {
        if (placeList.Contains(target))
        {
            placeList.Remove(target);
            return(true);
        }

        else
        {
            return(false);
        }
    }
Beispiel #2
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();
            }
        }
    }
Beispiel #3
0
 //places
 public void insertPlace(Scr_Place p)
 {
     placeList.Add(p);
 }