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

Method GetRunCounter

Core/KernelSML/src/sml_AgentSML.cpp:380–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380uint64_t AgentSML::GetRunCounter(smlRunStepSize runStepSize)
381{
382 switch (runStepSize)
383 {
384 case sml_PHASE:
385 return GetNumPhasesExecuted() ;
386 case sml_ELABORATION:
387 return GetNumElaborationsExecuted() ;
388 case sml_DECISION:
389 return GetNumDecisionCyclesExecuted() ;
390 case sml_UNTIL_OUTPUT:
391 return GetNumOutputsGenerated() ;
392 default:
393 return 0;
394 }
395}
396
397//=============================
398// Request that the agent stop soon.

Callers 4

IsAgentFinishedMethod · 0.45
InitializeRunCountersMethod · 0.45
RunScheduledAgentsMethod · 0.45
HandleCreateAgentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected