cppyabm
1.0.17
An agent-based library to integrate C++ and Python
|
|
Go to the documentation of this file.
7 template<
class ENV,
class AGENT,
class PATCH>
10 shared_ptr<PATCH> _patch =
nullptr,
15 _flag(flag),_patch(_patch),_inherit(inherit),
16 _quiet(quiet),_reset(reset)
27 template<
class ENV,
class AGENT,
class PATCH>
30 shared_ptr<PATCH> _patch =
nullptr,
34 _flag(flag),_patch(_patch), _quiet(quiet), _reset(reset)
55 const char *
what()
const throw() {
56 return message.c_str();
Configuration of switch order from one agent type to another.
bool _quiet
Silent exceptions if hatch fails.
HATCH_CONFIG(bool flag=false, shared_ptr< PATCH > _patch=nullptr, bool inherit=false, bool quiet=false, bool reset=false)
SWITCH_CONFIG(bool flag=false, string to="")
MOVE_CONFIG(bool flag=false, shared_ptr< PATCH > _patch=nullptr, bool quiet=false, bool reset=false)
bool _reset
Resets upon failure in hatching. If false, the agent will try in the next steps again.
shared_ptr< PATCH > _patch
the patch that the new agent will be set. If null, a random patch will be selected.
bool _quiet
Silent exceptions if hatch fails.
string _to
the target agent class name
bool _flag
if false, the entire hatching process is skipped.
Configuration of move order.
bool _flag
if false, the entire process is skipped.
Configuration of hatch order.
base_exception_class(std::string msg)
bool _reset
Resets upon failure in hatching. If false, the agent will try in the next steps again.
const char * what() const
bool _inherit
Inherit from current patch. Agent::inherit should be defined for this purpose.
shared_ptr< PATCH > _patch
the patch that the new agent will be set. If null, a random patch will be selected.