30 ss <<
"----------- PRINT STATE MACHINE STRUCTURE -------------------" << std::endl;
34 smacc2_msgs::msg::SmaccState
stateMsg;
43 ss <<
"Index: " <<
stateMsg.index << std::endl;
44 ss <<
"StateLevel: " <<
stateMsg.level << std::endl;
46 ss <<
" Childstates:" << std::endl;
56 ss <<
" Transitions:" << std::endl;
58 for (
auto & transition :
state->transitions_)
64 ss <<
" - Transition. " << std::endl;
66 ss <<
" - Transition Name: " <<
transitionMsg.transition_name << std::endl;
67 ss <<
" - Transition Type: " <<
transitionMsg.transition_type << std::endl;
69 ss <<
" - Event Source: " <<
transitionMsg.event.event_source << std::endl;
70 ss <<
" - Event ObjectTag: " <<
transitionMsg.event.event_object_tag << std::endl;
72 ss <<
" - Destiny State: " <<
transitionMsg.destiny_state_name << std::endl;
73 ss <<
" - Owner State: " <<
transitionMsg.destiny_state_name << std::endl;
74 ss <<
" - Is History Node: " << std::to_string(
transitionMsg.history_node) << std::endl;
75 ss <<
" - TransitionC++Type: " << transition.transitionTypeInfo->getFullName()
77 ss <<
" - EventC++Type: " << transition.eventInfo->eventType->getFullName() << std::endl;
84 std::map<const std::type_info *, std::vector<smacc2::ClientBehaviorInfoEntry *>>
87 ss <<
" Orthogonals:" << std::endl;
95 std::vector<smacc2::ClientBehaviorInfoEntry *>();
125 ss <<
" - NO CLIENT BEHAVIORS -" << std::endl;
141 ss <<
" - NO CLIENTS - " << std::endl;
146 ss <<
" State event generators:" << std::endl;
157 if (
eginfo->objectTagType !=
nullptr)
166 ss <<
" State reactors:" << std::endl;
177 if (
srinfo->objectTagType !=
nullptr)
183 for (
auto &
tev :
srinfo->sourceEventTypes)
187 smacc2_msgs::msg::SmaccEvent event;
189 ss <<
" - triggering event: " <<
tev->getEventTypeName() << std::endl;
192 event.event_source =
tev->getEventSourceName();
193 ss <<
" - source type: " <<
event.event_source << std::endl;
195 event.event_object_tag =
tev->getOrthogonalName();
196 ss <<
" - source object: " <<
event.event_object_tag << std::endl;
198 event.label =
tev->label;
199 ss <<
" - event label: " <<
event.label << std::endl;
209 ss <<
"- NO STATE REACTORS - " << std::endl;
212 ss <<
"----------------------------------------------------------" << std::endl;