MCPcopy Create free account
hub / github.com/SoarGroup/Soar / FireRunEvent

Method FireRunEvent

Core/KernelSML/src/sml_AgentSML.cpp:456–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void AgentSML::FireRunEvent(smlRunEventId eventId)
457{
458 if (eventId == smlEVENT_AFTER_RUN_ENDS)
459 {
460 // Send the trace to the clients
461 xml_invoke_callback(GetSoarAgent()); // invokes XML_GENERATION_CALLBACK, clears XML state
462 }
463
464 // Trigger a callback from the kernel to propagate the event out to listeners.
465 // This allows us to use a single uniform model for all run events (even when some are really originating here in SML).
466 int callbackEvent = KernelCallback::GetCallbackFromEventID(eventId) ;
467 soar_invoke_callbacks(m_agent, SOAR_CALLBACK_TYPE(callbackEvent), reinterpret_cast<soar_call_data>(m_agent->current_phase));
468}
469
470void AgentSML::FireSimpleXML(char const* pMsg)
471{

Callers 3

RunScheduledAgentsMethod · 0.80

Calls 4

xml_invoke_callbackFunction · 0.85
GetSoarAgentFunction · 0.85
soar_invoke_callbacksFunction · 0.85
SOAR_CALLBACK_TYPEEnum · 0.85

Tested by

no test coverage detected