Construct version 5.4.4
An agent based modeling framework
Forget Struct Reference

A modification model that causes agents to forget unused knowledge. More...

Inheritance diagram for Forget:
Collaboration diagram for Forget:

Public Member Functions

 Forget (Construct &construct)
 
void think (void) override
 
void communicate (const InteractionMessage &msg) override
 
void cleanup (void) override
 Function called after the Model::communicate functions in a simulation cycle. More...
 
- 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 Nodesetagents
 
Graph< bool > * knowledge_net = 0
 
Graph< float > * knowledge_strength = 0
 
const Graph< float > * knowledge_forget_rate = 0
 
const Graph< float > * knowledge_forget_prob = 0
 
Graph< float > * ktrust_net = 0
 
Graph< bool > * unused_knowledge = 0
 
- 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 causes agents to forget unused knowledge.

Constructor & Destructor Documentation

◆ Forget()

Forget::Forget ( Construct construct)

summary>

Here is the call graph for this function:

Member Function Documentation

◆ cleanup()

void Forget::cleanup ( void  )
overridevirtual

Function called after the Model::communicate functions in a simulation cycle.

End of cycle calculations are done during this function. Model::cleanup is called after GraphManager::push_deltas is called.

Reimplemented from Model.

Here is the call graph for this function:

◆ communicate()

void Forget::communicate ( const InteractionMessage msg)
overridevirtual

summary>

Reimplemented from Model.

Here is the call graph for this function:

◆ think()

void Forget::think ( void  )
overridevirtual

summary>

Reimplemented from Model.

Here is the call graph for this function:

Member Data Documentation

◆ agents

const Nodeset* Forget::agents

summary>

◆ knowledge_forget_prob

const Graph<float>* Forget::knowledge_forget_prob = 0

summary>

◆ knowledge_forget_rate

const Graph<float>* Forget::knowledge_forget_rate = 0

summary>

◆ knowledge_net

Graph<bool>* Forget::knowledge_net = 0

summary>

◆ knowledge_strength

Graph<float>* Forget::knowledge_strength = 0

summary>

◆ ktrust_net

Graph<float>* Forget::ktrust_net = 0

summary>

◆ unused_knowledge

Graph<bool>* Forget::unused_knowledge = 0

summary>