a simple class to track multiple agents
This class can perhaps begin to manage sessions in time.
initialize the agent manager
-
get_active_agents()
- returns a list of agents that are connected to a grid
-
has_agents_running()
- returns true if there is a client who’s running value = True
-
initialize(agents)
- accept a list of Agent() instances, and store them in the agents attribute
-
login(key, loginuri, start_location)
- spawns a new agent via an eventlet coroutine
-
sigint_handler(sigint, frame)
- handles signals from the command line (and others) and logs out all agents
-
store_agent(agent)
- adds an agent to the store