contains_agent_type(agents, agent_type): Returns a boolean indicating whether an agent of agent_type is in agents.
remove_agents_type(agents, agent_type): Returns agents where all agents of type agent_type are removed.
only_agents_type(agents, agent_type): Returns agents where all agents not of type agent_type are removed.
agents_ordered(agents, variable, increasing=True): Returns the agents list, sorted by variable in either increasing or decreasing order. Prints an error if not all agents in the list have the attribute.
destroy_agents(agents): Destroys all agents in agents.
contains_agent_type(agents, agent_type)
: Returns a boolean indicating whether an agent ofagent_type
is inagents
.remove_agents_type(agents, agent_type)
: Returnsagents
where all agents of typeagent_type
are removed.only_agents_type(agents, agent_type)
: Returnsagents
where all agents not of typeagent_type
are removed.agents_ordered(agents, variable, increasing=True)
: Returns theagents
list, sorted byvariable
in either increasing or decreasing order. Prints an error if not all agents in the list have the attribute.destroy_agents(agents)
: Destroys all agents inagents
.