#include <Sensor.h>

Public Member Functions | |
| virtual RTC::ReturnCode_t | onExecute (RTC::UniqueId ec_id) |
| Callback function to execute periodically. | |
| virtual RTC::ReturnCode_t | onInitialize () |
| Callback function to initialize. | |
| Sensor (RTC::Manager *manager) | |
| ~Sensor () | |
Protected Attributes | |
| TimedLong | m_in |
| InPort< TimedLong > | m_inIn |
| TimedFloat | m_out |
| OutPort< TimedFloat > | m_outOut |
| Sensor::Sensor | ( | RTC::Manager * | manager | ) |
Definition at line 29 of file Sensor.cpp.
| Sensor::~Sensor | ( | ) |
Definition at line 39 of file Sensor.cpp.
| RTC::ReturnCode_t Sensor::onExecute | ( | RTC::UniqueId | exec_handle | ) | [virtual] |
Callback function to execute periodically.
This is a callback function that is executed when DataFlowComponentAction::on_execute is invoked.
As for actual periodic execution of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it. This function is invoked periodically as the first execution pass of Two-Pass Execution in Periodic Sampled Data Processing.
| exec_handle | ID of the participant ExecutionContext |
Reimplemented from RTC::RTObject_impl.
Definition at line 102 of file Sensor.cpp.
| RTC::ReturnCode_t Sensor::onInitialize | ( | void | ) | [virtual] |
Callback function to initialize.
This is a callback function that is executed when ComponentAction::on_initialize was invoked.
As for actual initialization of each component, since this function is dummy-implemented to return RTC::RTC_OK unconditionally, you need to implement this function by overriding it.
Reimplemented from RTC::RTObject_impl.
Definition at line 44 of file Sensor.cpp.
TimedLong Sensor::m_in [protected] |
InPort<TimedLong> Sensor::m_inIn [protected] |
TimedFloat Sensor::m_out [protected] |
OutPort<TimedFloat> Sensor::m_outOut [protected] |