swarmsim.agent.control.AgentMethodController#

Controller which redirects to a method on the agent.

class swarmsim.agent.control.AgentMethodController.AgentMethodController(agent, parent=None)[source]#

Controller which redirects its get_actions() call to the agent’s get_actions() method.

Methods

get_actions(agent)

Redirects to the agent's get_actions() method.

as_config_dict

set_agent

set_parent

get_actions(agent)[source]#

Redirects to the agent’s get_actions() method.

Classes

AgentMethodController(agent[, parent])

Controller which redirects its get_actions() call to the agent's get_actions() method.