source¶
Syntax¶
Parameters¶
condition- A transmissible condition within the model.
Returns¶
If the agent has been exposed to the given condition, this action returns the
agent ID of the agent who transmitted the condition to the agent. If the agent
was exposed through an importation, the action returns the ID of the
meta-agent, -1.
If the agent has not been exposed to the condition, the action returns -1.
Description¶
This action returns the agent ID of the transmission source for a given condition.