13 std::string prefix =
"AgentState";
17 Datum* d = m_->context()->NewDatum(prefix + title);
18 d->
AddVal(
"AgentId", m_->id());
19 d->
AddVal(
"SimTime", m_->context()->time());
The abstract base class used by all types of agents that live and interact in a simulation.
Used to specify and send a collection of key-value pairs to the Recorder for recording.
Datum * AddVal(const char *field, boost::spirit::hold_any val, std::vector< int > *shape=NULL)
Add an arbitrary field-value pair to the datum.
Datum * NewDatum(std::string title)
Returns a new datum to be used exactly as the Context::NewDatum method.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....