SMACC
|
#include <eg_random_generator.h>
Public Member Functions | |
EgRandomGenerator (RandomGenerateReactorMode mode, double evAMin=1, double evAMax=4, double evBMin=5, double evBMax=8, double evCMin=9, double evCMax=12) | |
virtual void | onEntry () override |
template<typename TState , typename TSource > | |
void | onStateAllocation () |
void | postRandomEvents () |
virtual void | update () override |
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 | |
RandomGenerateReactorMode | mode_ |
Private Attributes | |
std::function< void()> | postEventA |
std::function< void()> | postEventB |
std::function< void()> | postEventC |
double | evAMin_ |
double | evAMax_ |
double | evBMin_ |
double | evBMax_ |
double | evCMin_ |
double | evCMax_ |
double | minValue |
double | maxValue |
Additional Inherited Members | |
virtual void | update ()=0 |
Definition at line 36 of file eg_random_generator.h.
smacc::state_reactors::EgRandomGenerator::EgRandomGenerator | ( | RandomGenerateReactorMode | mode, |
double | evAMin = 1 , |
||
double | evAMax = 4 , |
||
double | evBMin = 5 , |
||
double | evBMax = 8 , |
||
double | evCMin = 9 , |
||
double | evCMax = 12 |
||
) |
Definition at line 7 of file eg_random_generator.cpp.
|
overridevirtual |
Reimplemented from smacc::SmaccEventGenerator.
Definition at line 57 of file eg_random_generator.cpp.
References mode_, smacc::state_reactors::ONE_SHOT, and postRandomEvents().
|
inline |
Definition at line 44 of file eg_random_generator.h.
References postEventA, postEventB, and postEventC.
void smacc::state_reactors::EgRandomGenerator::postRandomEvents | ( | ) |
Definition at line 36 of file eg_random_generator.cpp.
References evAMax_, evAMin_, evBMax_, evBMin_, evCMax_, evCMin_, maxValue, minValue, postEventA, postEventB, and postEventC.
Referenced by onEntry(), and update().
|
overridevirtual |
Implements smacc::ISmaccUpdatable.
Definition at line 65 of file eg_random_generator.cpp.
References mode_, smacc::state_reactors::ON_UPDATE, and postRandomEvents().
|
private |
Definition at line 63 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 62 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 65 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 64 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 67 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 66 of file eg_random_generator.h.
Referenced by postRandomEvents().
|
private |
Definition at line 70 of file eg_random_generator.h.
Referenced by EgRandomGenerator(), and postRandomEvents().
|
private |
Definition at line 69 of file eg_random_generator.h.
Referenced by EgRandomGenerator(), and postRandomEvents().
RandomGenerateReactorMode smacc::state_reactors::EgRandomGenerator::mode_ |
Definition at line 55 of file eg_random_generator.h.
|
private |
Definition at line 58 of file eg_random_generator.h.
Referenced by onStateAllocation(), and postRandomEvents().
|
private |
Definition at line 59 of file eg_random_generator.h.
Referenced by onStateAllocation(), and postRandomEvents().
|
private |
Definition at line 60 of file eg_random_generator.h.
Referenced by onStateAllocation(), and postRandomEvents().