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

Unless you use Sink or e.g. Exit object, 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 object).

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]
Code executed when the agent enters the object.
Local variable: agent - the agent.


long count() - returns the number of agents exited via this Sink object.


The input port.