cppyabm  1.0.17
An agent-based library to integrate C++ and Python
List of all members
expEnv Struct Reference
Inheritance diagram for expEnv:
Env< expEnv, expAgent, expPatch >

Additional Inherited Members

- Public Member Functions inherited from Env< expEnv, expAgent, expPatch >
 Env ()
 
 Env ()
 
virtual ~Env ()
 
virtual ~Env ()
 
virtual shared_ptr< expPatchgenerate_patch (MESH_ITEM)
 
virtual shared_ptr< expPatchgenerate_patch (MESH_ITEM)
 
virtual shared_ptr< expAgentgenerate_agent (string class_name)
 A template class to generate patch. More...
 
virtual shared_ptr< expAgentgenerate_agent (string class_name)
 A template class to generate patch. More...
 
virtual void update_repo ()
 A template class to generate agent. More...
 
virtual void update_repo ()
 A template class to generate agent. More...
 
void setup_domain (vector< MESH_ITEM > mesh)
 Sets up the domain by creating patch objects in accordance to mesh objects. More...
 
void setup_domain (vector< MESH_ITEM > mesh)
 Sets up the domain by creating patch objects in accordance to mesh objects. More...
 
void setup_agents (map< string, unsigned > config)
 Creates agents and randomly distributes them in the simulation domain. More...
 
void setup_agents (map< string, unsigned > config)
 Creates agents and randomly distributes them in the simulation domain. More...
 
void step_agents ()
 Calls step function of agents. More...
 
void step_agents ()
 Calls step function of agents. More...
 
void step_patches ()
 Calls step function of patches. More...
 
void step_patches ()
 Calls step function of patches. More...
 
virtual void update ()
 Update the world. All built-in utilities such as Agent::order_move are executed here. More...
 
virtual void update ()
 Update the world. All built-in utilities such as Agent::order_move are executed here. More...
 
void place_agent (shared_ptr< expPatch > patch, shared_ptr< expAgent > agent)
 Places the given agent in the given patch. Raises an exception if the patch is not available. More...
 
void place_agent (unsigned patch_index, shared_ptr< expAgent > agent)
 Places the given agent in the given patch index. Raises an exception if the patch is not available. More...
 
void place_agent (shared_ptr< expPatch > patch, shared_ptr< expAgent > agent)
 Places the given agent in the given patch. Raises an exception if the patch is not available. More...
 
void place_agent (unsigned patch_index, shared_ptr< expAgent > agent)
 Places the given agent in the given patch index. Raises an exception if the patch is not available. More...
 
void place_agent_randomly (shared_ptr< expAgent > agent)
 Places the given agent randomly in the domain. Raises exception if no patch is available. More...
 
void place_agent_randomly (shared_ptr< expAgent > agent)
 Places the given agent randomly in the domain. Raises exception if no patch is available. More...
 
shared_ptr< expPatchfind_empty_patch ()
 Finds empty patches in the entire domain. More...
 
shared_ptr< expPatchfind_empty_patch ()
 Finds empty patches in the entire domain. More...
 
void remove_agent (shared_ptr< expAgent > agent)
 
void remove_agent (shared_ptr< expAgent > agent)
 
void process_switch ()
 Process swtich requests. More...
 
void process_switch ()
 Process swtich requests. More...
 
void process_hatch ()
 Process hatch requests. More...
 
void process_hatch ()
 Process hatch requests. More...
 
void process_move ()
 Process move requests. More...
 
void process_move ()
 Process move requests. More...
 
void process_disappear ()
 Process disappear requests. More...
 
void process_disappear ()
 Process disappear requests. More...
 
virtual void step ()
 
virtual void step ()
 
map< string, unsigned > count_agents ()
 steps the simulation More...
 
map< string, unsigned > count_agents ()
 steps the simulation More...
 
double memory_usage ()
 
double memory_usage ()
 
- Public Attributes inherited from Env< expEnv, expAgent, expPatch >
std::map< std::string, unsigned > agents_count
 Keeps the record the agents according to Agent::class_name. More...
 
std::set< string > agent_classes
 stores a list of Agent::class_name. More...
 
vector< shared_ptr< expAgent > > agents
 Agent container. More...
 
map< unsigned, shared_ptr< expPatch > > patches
 Patch container. More...
 

Detailed Description

Definition at line 9 of file binds.cpp.


The documentation for this struct was generated from the following file: