Public Member Functions | |
expPatch (shared_ptr< expEnv > env, MESH_ITEM mesh_item) | |
expPatch (shared_ptr< expEnv > env, MESH_ITEM mesh_item) | |
![]() | |
Patch (shared_ptr< expEnv > env, MESH_ITEM mesh_item) | |
Patch (shared_ptr< expEnv > env, MESH_ITEM mesh_item) | |
virtual | ~Patch () |
virtual | ~Patch () |
virtual void | step () |
virtual void | step () |
void | set_agent (shared_ptr< expAgent > agent) |
To define patch behavior. More... | |
void | set_agent (shared_ptr< expAgent > agent) |
To define patch behavior. More... | |
shared_ptr< expAgent > | get_agent () |
Assigns agent to the patch. More... | |
shared_ptr< expAgent > | get_agent () |
Assigns agent to the patch. More... | |
bool | empty () |
bool | empty () |
void | remove_agent () |
Removes agent from the patch. More... | |
void | remove_agent () |
Removes agent from the patch. More... | |
shared_ptr< expPatch > | empty_neighbor (bool quiet=false) |
Returns an arbitrary adjacent patch without an agent. More... | |
shared_ptr< expPatch > | empty_neighbor (bool quiet=false) |
Returns an arbitrary adjacent patch without an agent. More... | |
vector< shared_ptr< expAgent > > | find_neighbor_agents (bool include_self=true) |
Returns agents in one patch neighbors. More... | |
vector< shared_ptr< expAgent > > | find_neighbor_agents (bool include_self=true) |
Returns agents in one patch neighbors. More... | |
Additional Inherited Members | |
![]() | |
unsigned | agent_count |
Keeps the record of residing agents count. More... | |
std::weak_ptr< expAgent > | agent |
Pointer to stores agents. More... | |
std::shared_ptr< expEnv > | env |
Pointer to the simulation environment. More... | |
bool | on_border |
whether the patch residing on the border of the domain More... | |
unsigned | index |
unique index that associate patch to mesh More... | |
unsigned | layer_index |
the index of the layer in which the patch is residing More... | |
vector< double > | coords |
the coordinates of the patch More... | |
vector< unsigned > | neighbors_indices |
the indices of the neighbor patches More... | |
vector< shared_ptr< expPatch > > | neighbors |
list of neighbor patches More... | |