35 setTag(
"StatechartEventDistributor");
40 this->statechartManager = statechartManager;
48 entry.
eventProcessor = StateControllerPtr::dynamicCast(eventProcessor);
53 std::unique_lock lock(eventMapMutex);
54 StatechartEventDistributor::EventListenerMap::iterator it =
eventMap.find(uniqueEventIdentifier);
58 it->second.useCounter++;
62 eventMap[uniqueEventIdentifier] = entry;
65 return uniqueEventIdentifier;
68 void StatechartEventDistributor::onInitComponent()
73 void StatechartEventDistributor::onConnectComponent()
75 myProxy = EventListenerInterfacePrx::checkedCast(
getProxy());
84 std::unique_lock lock(eventMapMutex);
85 EventListenerMap::iterator it =
eventMap.find(event->eventName);
89 ARMARX_ERROR <<
"Could not find Event in EventListenerMap" <<
event->eventName <<
" receiver: " <<
event->eventReceiverName;
90 throw LocalException(
"Could not find Event in EventListenerMap - eventName") <<
event->eventName <<
" receiver: " <<
event->eventReceiverName;
94 entry.
event->properties =
event->properties;
117 std::stringstream
str;
119 eventProcessor->stateName <<
120 "(" << eventProcessor->impl->localUniqueId <<
121 ")___Event:" <<
event->eventName <<
122 "___EventRecv:" <<
event->eventReceiverName <<
123 "__visitId:" << visitId;