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

Public Member Functions

 expPatch (shared_ptr< expEnv > env, MESH_ITEM mesh_item)
 
 expPatch (shared_ptr< expEnv > env, MESH_ITEM mesh_item)
 
- Public Member Functions inherited from Patch< expEnv, expAgent, expPatch >
 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< expAgentget_agent ()
 Assigns agent to the patch. More...
 
shared_ptr< expAgentget_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< expPatchempty_neighbor (bool quiet=false)
 Returns an arbitrary adjacent patch without an agent. More...
 
shared_ptr< expPatchempty_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

- Public Attributes inherited from Patch< expEnv, expAgent, expPatch >
unsigned agent_count
 Keeps the record of residing agents count. More...
 
std::weak_ptr< expAgentagent
 Pointer to stores agents. More...
 
std::shared_ptr< expEnvenv
 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...
 

Detailed Description

Definition at line 16 of file binds.cpp.

Constructor & Destructor Documentation

◆ expPatch() [1/2]

expPatch::expPatch ( shared_ptr< expEnv env,
MESH_ITEM  mesh_item 
)
inline

Definition at line 17 of file binds.cpp.

◆ expPatch() [2/2]

expPatch::expPatch ( shared_ptr< expEnv env,
MESH_ITEM  mesh_item 
)
inline

Definition at line 17 of file binds.cpp.


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