30 std::shared_ptr<Decision> best =
nullptr;
32 if (
auto event = eventDispatcher->dispatchEvent(systemState) ) {
33 if (
auto decision = dynamic_pointer_cast<Decision>(event) ) {
34 if ( decision->evaluation.has_value() ) {
39 else if ( decision->evaluation.value() < best->evaluation.value() ) {