|
SMACC
|
#include <eg_conditional_generator.h>


Public Member Functions | |
| EgConditionalGenerator (ConditionalGeneratorMode mode, std::function< bool()> updatePredicate=nullptr) | |
| virtual void | onEntry () override |
| template<typename TState , typename TSource > | |
| void | onStateAllocation () |
| virtual void | update () override |
| void | setPredicateFunction (std::function< bool()> updatePredicate) |
Public Member Functions inherited from smacc::SmaccEventGenerator | |
| SmaccEventGenerator () | |
| virtual | ~SmaccEventGenerator () |
| template<typename TState , typename TSource > | |
| void | onStateAllocation () |
| virtual void | onEntry () |
| virtual void | onExit () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| void | initialize (ISmaccState *ownerState) |
| virtual void | onInitialized () |
Public Member Functions inherited from smacc::ISmaccUpdatable | |
| ISmaccUpdatable () | |
| ISmaccUpdatable (ros::Duration duration) | |
| void | executeUpdate () |
| void | setUpdatePeriod (ros::Duration duration) |
Public Attributes | |
| ConditionalGeneratorMode | mode_ |
Private Member Functions | |
| void | checkPredicateAndPost () |
Private Attributes | |
| std::function< void()> | postEventTrue |
| std::function< void()> | postEventFalse |
| std::function< bool()> | updatePredicate_ |
Additional Inherited Members | |
| virtual void | update ()=0 |
Definition at line 30 of file eg_conditional_generator.h.
| smacc::event_generators::EgConditionalGenerator::EgConditionalGenerator | ( | ConditionalGeneratorMode | mode, |
| std::function< bool()> | updatePredicate = nullptr |
||
| ) |
Definition at line 7 of file eg_conditional_generator.cpp.
|
private |
Definition at line 14 of file eg_conditional_generator.cpp.
References postEventFalse, postEventTrue, and updatePredicate_.
Referenced by onEntry(), and update().

|
overridevirtual |
Reimplemented from smacc::SmaccEventGenerator.
Definition at line 26 of file eg_conditional_generator.cpp.
References checkPredicateAndPost(), mode_, and smacc::event_generators::ONE_SHOT.

|
inline |
Definition at line 38 of file eg_conditional_generator.h.
References postEventFalse, and postEventTrue.
| void smacc::event_generators::EgConditionalGenerator::setPredicateFunction | ( | std::function< bool()> | updatePredicate | ) |
Definition at line 42 of file eg_conditional_generator.cpp.
References updatePredicate_.
|
overridevirtual |
Implements smacc::ISmaccUpdatable.
Definition at line 34 of file eg_conditional_generator.cpp.
References checkPredicateAndPost(), mode_, and smacc::event_generators::ON_UPDATE.

| ConditionalGeneratorMode smacc::event_generators::EgConditionalGenerator::mode_ |
Definition at line 45 of file eg_conditional_generator.h.
|
private |
Definition at line 52 of file eg_conditional_generator.h.
Referenced by checkPredicateAndPost(), and onStateAllocation().
|
private |
Definition at line 51 of file eg_conditional_generator.h.
Referenced by checkPredicateAndPost(), and onStateAllocation().
|
private |
Definition at line 53 of file eg_conditional_generator.h.
Referenced by checkPredicateAndPost(), and setPredicateFunction().