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

Public Member Functions

 expAgent (shared_ptr< expEnv > env, string class_name)
 
 expAgent (shared_ptr< expEnv > env, string class_name)
 
- Public Member Functions inherited from Agent< expEnv, expAgent, expPatch >
 Agent (shared_ptr< expEnv > env, string class_name)
 
 Agent (shared_ptr< expEnv > env, string class_name)
 
virtual ~Agent ()
 
virtual ~Agent ()
 
virtual void step ()
 
virtual void step ()
 
virtual void inherit (shared_ptr< expAgent > father)
 To define agent behavior. More...
 
virtual void inherit (shared_ptr< expAgent > father)
 To define agent behavior. More...
 
virtual void update ()
 To define inheritage. More...
 
virtual void update ()
 To define inheritage. More...
 
void move (shared_ptr< expPatch > dest, bool quiet=false)
 Moves the agent to the given destination patch. More...
 
void move (shared_ptr< expPatch > dest, bool quiet=false)
 Moves the agent to the given destination patch. More...
 
void order_hatch (shared_ptr< expPatch > patch=nullptr, bool inherit=false, bool quiet=false, bool reset=false)
 Orders agent to hatch. This will execute during Env::update. More...
 
void order_hatch (shared_ptr< expPatch > patch=nullptr, bool inherit=false, bool quiet=false, bool reset=false)
 Orders agent to hatch. This will execute during Env::update. More...
 
void order_move (shared_ptr< expPatch > patch=nullptr, bool quiet=false, bool reset=false)
 Orders agent to move. This will execute during Env::update. More...
 
void order_move (shared_ptr< expPatch > patch=nullptr, bool quiet=false, bool reset=false)
 Orders agent to move. This will execute during Env::update. More...
 
void order_switch (string to)
 
void order_switch (string to)
 
void reset_hatch ()
 Orders agent to switch to another agent. This will execute during Env::update. More...
 
void reset_hatch ()
 Orders agent to switch to another agent. This will execute during Env::update. More...
 
void reset_move ()
 
void reset_move ()
 
void reset_switch ()
 
void reset_switch ()
 

Additional Inherited Members

- Public Attributes inherited from Agent< expEnv, expAgent, expPatch >
std::pair< bool, std::string > switch_info
 
HATCH_CONFIG< expEnv, expAgent, expPatch_hatch
 
MOVE_CONFIG< expEnv, expAgent, expPatch_move
 
SWITCH_CONFIG _switch
 
std::shared_ptr< expPatchpatch
 Pointer to the residing patch. More...
 
std::shared_ptr< expEnvenv
 Pointer to the simulation world. More...
 
bool disappear
 if set to true, the agent will be removed from the simulation. This will execute during Env::update More...
 
string class_name
 Unique ID of this class. More...
 
bool has_patch
 Indicates if an agent residing on a patch. More...
 

Detailed Description

Definition at line 11 of file binds.cpp.

Constructor & Destructor Documentation

◆ expAgent() [1/2]

expAgent::expAgent ( shared_ptr< expEnv env,
string  class_name 
)
inline

Definition at line 12 of file binds.cpp.

◆ expAgent() [2/2]

expAgent::expAgent ( shared_ptr< expEnv env,
string  class_name 
)
inline

Definition at line 12 of file binds.cpp.


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