![]() |
Construct version 5.3.9
An agent based modeling framework
|
Outputs the contents of the message queue to a json file. More...
Public Member Functions | |
void | item_out (InteractionMessage::iterator item) |
void | msg_out (InteractionMessageQueue::iterator msg) |
void | process (unsigned int t) |
Called after each model has executed. More... | |
Output_Messages (const dynet::ParameterMap ¶ms, Construct *construct) | |
Constructor for the "mesages" type output. More... | |
![]() | |
virtual | ~Output () |
Virtual Deconstructor. More... | |
virtual void | process (unsigned int t)=0 |
Called after each model has executed. More... | |
Public Attributes | |
InteractionMessageQueue * | queue |
std::ofstream | _output_file |
Outputs the contents of the message queue to a json file.
|
inline |
Constructor for the "mesages" type output.
Exception Safety
If the parameters "output file" is not in the ParameterMap, a dynet::could_not_find_parameter is thrown. If the "output file" parameter does not have extension ".json", a dynet::wrong_file_extension is thrown. If this file can not be opened for writing, a dynet::could_not_open_file is thrown.
|
inlinevirtual |
Called after each model has executed.
t | The current time period. |
Implements Output.