SMACC2
|
#include <smacc_state_info.hpp>
Public Types | |
typedef std::shared_ptr< SmaccStateInfo > | Ptr |
Public Member Functions | |
SmaccStateInfo (const std::type_info *tid, std::shared_ptr< SmaccStateInfo > parentState, std::shared_ptr< SmaccStateMachineInfo > stateMachineInfo) | |
SmaccStateType | getStateLevel () |
int | depth () const |
void | getAncestors (std::list< const SmaccStateInfo * > &ancestorsList) const |
std::string | getFullPath () |
template<typename StateType > | |
std::shared_ptr< SmaccStateInfo > | createChildState () |
template<typename EvType > | |
void | declareTransition (std::shared_ptr< SmaccStateInfo > &dstState, std::string transitionTag, std::string transitionType, bool history, TypeInfo::Ptr transitionTypeInfo) |
const std::string & | toShortName () const |
std::string | getDemangledFullName () const |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Public Attributes | |
int | stateIndex_ |
std::string | fullStateName |
std::string | demangledStateName |
std::shared_ptr< SmaccStateMachineInfo > | stateMachine_ |
std::shared_ptr< SmaccStateInfo > | parentState_ |
std::vector< SmaccTransitionInfo > | transitions_ |
std::vector< std::shared_ptr< SmaccStateInfo > > | children_ |
int | depth_ |
const std::type_info * | tid_ |
Static Public Attributes | |
static std::map< const std::type_info *, std::vector< ClientBehaviorInfoEntry > > | staticBehaviorInfo |
static std::map< const std::type_info *, std::vector< std::shared_ptr< SmaccStateReactorInfo > > > | stateReactorsInfo |
static std::map< const std::type_info *, std::vector< std::shared_ptr< SmaccEventGeneratorInfo > > > | eventGeneratorsInfo |
Definition at line 171 of file smacc_state_info.hpp.
typedef std::shared_ptr<SmaccStateInfo> smacc2::introspection::SmaccStateInfo::Ptr |
Definition at line 174 of file smacc_state_info.hpp.
smacc2::SmaccStateInfo::SmaccStateInfo | ( | const std::type_info * | tid, |
std::shared_ptr< SmaccStateInfo > | parentState, | ||
std::shared_ptr< SmaccStateMachineInfo > | stateMachineInfo | ||
) |
Definition at line 37 of file smacc_state_info.cpp.
References depth_, parentState_, stateMachine_, and tid_.
std::shared_ptr< SmaccStateInfo > smacc2::introspection::SmaccStateInfo::createChildState |
Definition at line 505 of file smacc_state_machine_info.hpp.
References getLogger(), and stateMachine_.
void smacc2::introspection::SmaccStateInfo::declareTransition | ( | std::shared_ptr< SmaccStateInfo > & | dstState, |
std::string | transitionTag, | ||
std::string | transitionType, | ||
bool | history, | ||
TypeInfo::Ptr | transitionTypeInfo | ||
) |
Definition at line 242 of file smacc_state_machine_info.hpp.
References smacc2::introspection::SmaccTransitionInfo::destinyState, smacc2::introspection::SmaccTransitionInfo::eventInfo, smacc2::introspection::SmaccTransitionInfo::historyNode, smacc2::introspection::SmaccTransitionInfo::index, smacc2::introspection::SmaccTransitionInfo::sourceState, transitions_, smacc2::introspection::SmaccTransitionInfo::transitionTag, smacc2::introspection::SmaccTransitionInfo::transitionType, and smacc2::introspection::SmaccTransitionInfo::transitionTypeInfo.
|
inline |
void smacc2::SmaccStateInfo::getAncestors | ( | std::list< const SmaccStateInfo * > & | ancestorsList | ) | const |
Definition at line 48 of file smacc_state_info.cpp.
References parentState_.
std::string smacc2::SmaccStateInfo::getDemangledFullName | ( | ) | const |
Definition at line 88 of file smacc_state_info.cpp.
References smacc2::introspection::demangleSymbol(), and fullStateName.
std::string smacc2::SmaccStateInfo::getFullPath | ( | ) |
Definition at line 78 of file smacc_state_info.cpp.
References parentState_, and toShortName().
|
inline |
Definition at line 221 of file smacc_state_info.hpp.
References getNode().
Referenced by createChildState().
rclcpp::Node::SharedPtr smacc2::SmaccStateInfo::getNode | ( | ) |
Definition at line 76 of file smacc_state_info.cpp.
References stateMachine_.
Referenced by getLogger().
SmaccStateType smacc2::SmaccStateInfo::getStateLevel | ( | ) |
Definition at line 57 of file smacc_state_info.cpp.
References children_, parentState_, smacc2::introspection::STATE, smacc2::introspection::SUPERSTATE, and smacc2::introspection::SUPERSTATE_ROUTINE.
const std::string & smacc2::SmaccStateInfo::toShortName | ( | ) | const |
Definition at line 86 of file smacc_state_info.cpp.
References demangledStateName.
Referenced by getFullPath().
std::vector<std::shared_ptr<SmaccStateInfo> > smacc2::introspection::SmaccStateInfo::children_ |
Definition at line 190 of file smacc_state_info.hpp.
Referenced by getStateLevel().
std::string smacc2::introspection::SmaccStateInfo::demangledStateName |
Definition at line 184 of file smacc_state_info.hpp.
Referenced by toShortName().
int smacc2::introspection::SmaccStateInfo::depth_ |
Definition at line 191 of file smacc_state_info.hpp.
Referenced by depth(), and SmaccStateInfo().
|
static |
Definition at line 180 of file smacc_state_info.hpp.
Referenced by smacc2::introspection::SmaccStateMachineInfo::assembleSMStructureMessage(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::static_createEventGenerator().
std::string smacc2::introspection::SmaccStateInfo::fullStateName |
Definition at line 183 of file smacc_state_info.hpp.
Referenced by getDemangledFullName().
std::shared_ptr<SmaccStateInfo> smacc2::introspection::SmaccStateInfo::parentState_ |
Definition at line 187 of file smacc_state_info.hpp.
Referenced by getAncestors(), getFullPath(), getStateLevel(), and SmaccStateInfo().
int smacc2::introspection::SmaccStateInfo::stateIndex_ |
Definition at line 182 of file smacc_state_info.hpp.
std::shared_ptr<SmaccStateMachineInfo> smacc2::introspection::SmaccStateInfo::stateMachine_ |
Definition at line 186 of file smacc_state_info.hpp.
Referenced by createChildState(), getNode(), and SmaccStateInfo().
|
static |
Definition at line 178 of file smacc_state_info.hpp.
Referenced by smacc2::introspection::SmaccStateMachineInfo::assembleSMStructureMessage(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::static_createStateReactor(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::static_createStateReactor_aux().
|
static |
Definition at line 176 of file smacc_state_info.hpp.
Referenced by smacc2::introspection::SmaccStateMachineInfo::assembleSMStructureMessage(), smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::configure_orthogonal_internal(), and smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::entryStateInternal().
const std::type_info* smacc2::introspection::SmaccStateInfo::tid_ |
Definition at line 192 of file smacc_state_info.hpp.
Referenced by SmaccStateInfo().
std::vector<SmaccTransitionInfo> smacc2::introspection::SmaccStateInfo::transitions_ |
Definition at line 188 of file smacc_state_info.hpp.
Referenced by declareTransition().