Construct version 5.4.0
An agent based modeling framework
|
Model that parses the knowledge in messages. More...
Public Member Functions | |
KnowledgeParsing (Construct *_construct) | |
Finds and stores the knowledge network. | |
void | communicate (const InteractionMessage &msg) override |
Whenever a knowledge item is apart of a message, the relavant link in the knowledge network is set to true. More... | |
Public Member Functions inherited from Model | |
Model (Construct *_construct, const std::string &name) | |
Constructor for all models in Construct. More... | |
Model (const std::string &name) | |
Constructor for the PlaceHolder model. 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 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) |
Public Attributes | |
Graph< bool > & | knowledge_net = graph_manager->load_required(graph_names::knowledge, nodeset_names::agents, nodeset_names::knowledge) |
The pointer to the graph named "knowledge network" | |
Public Attributes inherited from Model | |
Construct *const | construct |
GraphManager *const | graph_manager |
NodesetManager *const | ns_manager |
Random *const | random |
const std::string | name |
Name of the model. Set by the Model constructor. | |
bool | valid |
If member is false, the model's functions are not called. | |
Model that parses the knowledge in messages.
|
overridevirtual |
Whenever a knowledge item is apart of a message, the relavant link in the knowledge network is set to true.
Reimplemented from Model.