The SimAgent companion object provides static information for the class. The director keeps track of the current number of live agents (nAgents). Gates are not considered live, since they simply cycle until the simulation ends. Sources are considered live, since they produce application agents and terminate when their production finishes.
By default each yield is TO an active director (has an act method), but a faster option is yield THROUGH a passive director to the first SimAgent in the director's agenda, e.g., Model2 calls setTHROUGH to set THROUGH to true
By default each yield is TO an active director (has an act method), but a faster option is yield THROUGH a passive director to the first SimAgent in the director's agenda, e.g., Model2 calls setTHROUGH to set THROUGH to true