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

Method ScheduleAgentToRun

Core/KernelSML/src/sml_AgentSML.cpp:644–651  ·  view source on GitHub ↗

void AgentSML::RegisterForBeforeAgentDestroyedEvent() { // We should do this immediately before we delete the agent. // We shouldn't do it earlier or we can't be sure it'll be last on the list of listeners which is where we // need it to be (so that we clear our information about the gSKI agent *after* we've notified any of our listeners // about this event). m_pBeforeDestroyedListener = new Agent

Source from the content-addressed store, hash-verified

642//}
643//
644void AgentSML::ScheduleAgentToRun(bool state)
645{
646 if (this->GetRunState() != sml_RUNSTATE_HALTED)
647 {
648 m_ScheduledToRun = state ;
649 m_WasOnRunList = state;
650 }
651}
652
653/*************************************************************
654* @brief Converts an id from a client side value to a kernel side value.

Callers 3

DoRunMethod · 0.45
DirectRunMethod · 0.45
HandleCreateAgentMethod · 0.45

Calls 1

GetRunStateMethod · 0.80

Tested by

no test coverage detected