diff --git a/src/guide/agent-functions/miscellaneous.rst b/src/guide/agent-functions/miscellaneous.rst index 72ca0d73b..1ddf85225 100644 --- a/src/guide/agent-functions/miscellaneous.rst +++ b/src/guide/agent-functions/miscellaneous.rst @@ -6,8 +6,12 @@ These other methods are also available within :class:`DeviceAPI` ``unsigned int`` Returns the current agent's unique identifier, this ID is unique to the agent throughout the simulation. All IDs are greater than 0. :func:`getStepCounter()` ``unsigned int`` Returns the current step index, the first step has index 0. Exit conditions execute before the step counter is incremented. :func:`getThreadIndex()` ``unsigned int`` Returns the current thread index, each agent executing the agent function has a unique thread index in the range [0, N). +:func:`isAgent()` ``bool`` When passed a string literal, this function will return a boolean confirming whether that string matches the executing agent's name. *This function is considered expensive.* +:func:`isState()` ``bool`` When passed a string literal, this function will return a boolean confirming whether that string matches the executing agent's state. *This function is considered expensive.* + ============================================================== =========================== =========================================================== Related Links