Font size


Disposes agents. Is usually an end point in a process model.

Unless you use Sink or e.g. Exit block, the agents would not be removed from the model and disposed (therefore you should not leave an unconnected port at the end of a process but finish the process with such block).

The following conditions should be satisfied before the agent may be successfully disposed:

  1. The agent mush have unregistered from a network if it was in a network
  2. The agent should not possess any resource units or network resource units
  3. If the agent contains other agents, they all should satisfy the same disposal conditions

If any of these conditions is violated, Sink raises an error.



On enter
Code executed when the agent enters the block.
Local variable: agent — the agent


Count agents
Function Description
long count() Returns the number of agents exited via this Sink block.


The input port.
How can we improve this article?