|
SMACC2
|
Sync behavior that retrieves current calendar status. More...
#include <cb_status.hpp>


Public Member Functions | |
| CbStatus ()=default | |
| virtual | ~CbStatus ()=default |
| void | onEntry () override |
| ConnectionState | getConnectionState () const |
| Get the connection state captured on entry. | |
| bool | isConnected () const |
| Check if connected. | |
| std::vector< CalendarEvent > | getEvents () const |
| Get events captured on entry. | |
| std::vector< CalendarEvent > | getActiveEvents () const |
| Get currently active events. | |
Public Member Functions inherited from smacc2::SmaccClientBehavior | |
| virtual | ~SmaccClientBehavior () |
| void | onEntry () override |
| void | onExit () override |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
| ISmaccClientBehavior () | |
| virtual | ~ISmaccClientBehavior () |
| ISmaccStateMachine * | getStateMachine () |
| std::string | getName () const |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | executeOnEntry () |
| virtual void | executeOnExit () |
Private Attributes | |
| ClGcalcli * | client_ |
| ConnectionState | connection_state_ |
| std::vector< CalendarEvent > | events_ |
| std::vector< CalendarEvent > | active_events_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
| virtual void | runtimeConfigure () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| ISmaccState * | getCurrentState () |
| virtual void | dispose () |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
Sync behavior that retrieves current calendar status.
This behavior provides a snapshot of the current connection state and calendar events. Use it to check system status on state entry.
Definition at line 33 of file cb_status.hpp.
|
default |
|
virtualdefault |
|
inline |
Get currently active events.
Definition at line 59 of file cb_status.hpp.
References active_events_.
|
inline |
Get the connection state captured on entry.
Definition at line 44 of file cb_status.hpp.
References connection_state_.
|
inline |
|
inline |
Check if connected.
Definition at line 49 of file cb_status.hpp.
References cl_gcalcli::CONNECTED, and connection_state_.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 20 of file cb_status.cpp.
References active_events_, cl_gcalcli::AUTHENTICATING, client_, cl_gcalcli::CONNECTED, connection_state_, cl_gcalcli::DISCONNECTED, cl_gcalcli::ERROR, events_, cl_gcalcli::ClGcalcli::getConnection(), smacc2::ISmaccClientBehavior::getLogger(), cl_gcalcli::ClGcalcli::getPoller(), and smacc2::ISmaccClientBehavior::requiresClient().

|
private |
Definition at line 65 of file cb_status.hpp.
Referenced by getActiveEvents(), and onEntry().
|
private |
Definition at line 62 of file cb_status.hpp.
Referenced by onEntry().
|
private |
Definition at line 63 of file cb_status.hpp.
Referenced by getConnectionState(), isConnected(), and onEntry().
|
private |
Definition at line 64 of file cb_status.hpp.
Referenced by getEvents(), and onEntry().