|
SMACC2
|
#include <sr_event_countdown.hpp>


Public Member Functions | |
| SrEventCountdown (int eventCount) | |
| virtual void | onInitialized () override |
| virtual void | onEventNotified (const std::type_info *eventType) override |
| virtual bool | triggers () override |
Public Member Functions inherited from smacc2::StateReactor | |
| StateReactor () | |
| virtual | ~StateReactor () |
| virtual void | onInitialized () |
| virtual void | onEntry () |
| virtual void | onExit () |
| virtual void | onEventNotified (const std::type_info *eventType) |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| template<typename T , typename TClass > | |
| void | createEventCallback (void(TClass::*callback)(T *), TClass *object) |
| template<typename T > | |
| void | createEventCallback (std::function< void(T *)> callback) |
| void | update () |
| virtual bool | triggers ()=0 |
| template<typename TEv > | |
| void | addInputEvent () |
| template<typename TEv > | |
| void | setOutputEvent () |
| void | initialize (ISmaccState *ownerState) |
| rclcpp::Node::SharedPtr & | getNode () |
| rclcpp::Logger | getLogger () |
Private Attributes | |
| std::map< const std::type_info *, bool > | triggeredEvents |
| int | eventCount_ |
Additional Inherited Members | |
Public Attributes inherited from smacc2::StateReactor | |
| ISmaccState * | ownerState |
| std::function< void()> | postEventFn |
| std::vector< const std::type_info * > | eventTypes |
| std::map< const std::type_info *, std::function< void(void *)> > | eventCallbacks_ |
Definition at line 32 of file sr_event_countdown.hpp.
| smacc2::state_reactors::SrEventCountdown::SrEventCountdown | ( | int | eventCount | ) |
Definition at line 24 of file sr_event_countdown.cpp.
|
overridevirtual |
Reimplemented from smacc2::StateReactor.
Definition at line 34 of file sr_event_countdown.cpp.
References smacc2::introspection::demangleSymbol(), eventCount_, and smacc2::StateReactor::getLogger().

|
overridevirtual |
Reimplemented from smacc2::StateReactor.
Definition at line 26 of file sr_event_countdown.cpp.
References smacc2::StateReactor::eventTypes, triggeredEvents, and generate_debs::type.
|
overridevirtual |
Implements smacc2::StateReactor.
Definition at line 50 of file sr_event_countdown.cpp.
References eventCount_, and smacc2::StateReactor::getLogger().

|
private |
Definition at line 36 of file sr_event_countdown.hpp.
Referenced by onEventNotified(), and triggers().
|
private |
Definition at line 35 of file sr_event_countdown.hpp.
Referenced by onInitialized().