Construct version 5.4.4
An agent based modeling framework
KnowledgeLearningDifficulty Class Reference

A modification model that stochastically prevents agents from receiving a knowledge item. More...

Inheritance diagram for KnowledgeLearningDifficulty:
Collaboration diagram for KnowledgeLearningDifficulty:

Public Member Functions

bool intercept (InteractionItem &item, unsigned int sender, unsigned int receiver, const CommunicationMedium *medium) override
 
 KnowledgeLearningDifficulty (Construct &construct)
 
- Public Member Functions inherited from Model
 Model (Construct &_construct)
 Constructor for all models in Construct. More...
 
virtual ~Model (void)
 Virtual Deconstructor. More...
 
virtual void initialize (void)
 Function called once before any simulation cycles begin. More...
 
virtual void think (void)
 First function called in a simulation cycle. More...
 
virtual void update (void)
 Function called after the think functions in a simulation cycle. More...
 
virtual bool intercept (InteractionItem &item, unsigned int sender, unsigned int receiver, const CommunicationMedium *medium)
 Allows for models to effect change to items created by other models. More...
 
virtual void communicate (const InteractionMessage &msg)
 Function called after the update functions in a simulation cycle. More...
 
virtual void cleanup (void)
 Function called after the Model::communicate functions in a simulation cycle. More...
 
void add_base_model_to_model_manager (const std::string &base_model_name)
 Adds a derived model under the name of the base model and disables the model manager from calling its functions.
 

Public Attributes

const Graph< float > & k_leanrning_difficulty_net = graph_manager.load_required(graph_names::k_diff, nodeset_names::agents, nodeset_names::knowledge)
 
- Public Attributes inherited from Model
Constructconstruct
 
GraphManagergraph_manager
 
NodesetManagerns_manager
 
Randomrandom
 
bool valid
 If member is false, the model's functions are not called.
 

Detailed Description

A modification model that stochastically prevents agents from receiving a knowledge item.

Constructor & Destructor Documentation

◆ KnowledgeLearningDifficulty()

KnowledgeLearningDifficulty::KnowledgeLearningDifficulty ( Construct construct)
inline

summary>

Member Function Documentation

◆ intercept()

bool KnowledgeLearningDifficulty::intercept ( InteractionItem item,
unsigned int  sender,
unsigned int  receiver,
const CommunicationMedium medium 
)
overridevirtual

summary>

Reimplemented from Model.

Here is the call graph for this function: