Reference 〉 Function

baseAgent.transfer(destHelipad)

In a multi-level model, this function allows an agent of a sub-model to move to a different sub-model. Agents can also move to and from the top-level model, for example if agents can join firms or exit them to compete as independent contractors. Note that the agent’s primitive must have been registered in the destination agent as well.

This function can be hooked with agentTransfer.

Parameters

  • dest Helipad, required

    The model to which to move the agent. This may be the top-level model or a MultiLevel agent.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.

History