예제 #1
0
파일: Place.cs 프로젝트: pandyer/APIMon
 /// <summary>
 /// This method adds token to this place w/o
 /// notification any interested parties. Usually used for debug and testing purposes
 /// </summary>
 /// <param name="t"></param>
 public void putTokenSilently(Token t)
 {
     counters.token_put_silently++;
     tokens.Add(t);
     t.setCurrentPlace(this);
     if (put_reaction != null)
     {
         put_reaction(this, t);
     }
 }
예제 #2
0
파일: Place.cs 프로젝트: pandyer/APIMon
 /// <summary>
 /// This method adds token to this place
 /// </summary>
 /// <param name="t"></param>
 public void putToken(Token t)
 {
     counters.token_put++;
     tokens.Add(t);
     t.setCurrentPlace(this);
     if (put_reaction != null)
     {
         put_reaction(this, t);
     }
     base.notifyOutputArcs();
 }