AnyLogic
Expand
Font size

PlainTransfer

A place to write some action when agent passes through some point of your flowchart.

Note that On at enter code is executed when agent decides that it most likely goes through this block, but it still did not enter this block. The resulting behavior depends on the target receiver block: it may be currently busy, and, moreover, the preceding block may cancel this agent (it may be Hold becoming blocked). After such canceling the agent may be even directed to some other path, e.g. because of recalculated conditions in preceding SelectOutput blocks.

Parameters

On at enter
Code executed when the agent decides that it most likely goes through this block.
Local variable: agent — the agent
On cancel enter
Code executed when enter for the agent is canceled.
Local variable: agent — the agent
On enter
Code executed when the agent enters the block.
Local variable: agent — the agent

Functions

Function Description
long count() Returns the number of agents, which passed through this block.
boolean isPortInConnected() Returns true if the in port of this block is connected to some other block.
boolean isPortOutConnected() Returns true if the out port of this block is connected to some other block.

Ports

in
The input port.
out
The output port.
How can we improve this article?