19#ifndef RTC_EXECUTIONCONTEXTPROFILE_H
20#define RTC_EXECUTIONCONTEXTPROFILE_H
23#include <coil/Properties.h>
25#include <rtm/idl/RTCStub.h>
112 void setObjRef(RTC::ExecutionContextService_ptr ec_ptr);
169 RTC::ReturnCode_t
setPeriod(std::chrono::nanoseconds period);
240 RTC::ReturnCode_t
setKind(RTC::ExecutionKind kind);
280 RTC::ReturnCode_t
setOwner(RTC::LightweightRTObject_ptr comp);
534 RTC::ExecutionContextProfile m_profile;
543 mutable std::mutex m_profileMutex;
552 std::chrono::nanoseconds m_period;
561 RTC::ExecutionContextService_var m_ref;
563 class find_participant
565 RTC::RTObject_var m_comp;
567 explicit find_participant(RTC::RTObject_ptr comp)
568 : m_comp(
RTC::RTObject::_duplicate(comp)) {}
569#ifdef ORB_IS_ORBEXPRESS
570 bool operator()(RTC::RTObject_var comp)
572 return m_comp->_is_equivalent(comp.in());
575 bool operator()(RTC::RTObject_ptr comp)
577 return m_comp->_is_equivalent(comp);
RT component logger class.
Logger class.
Definition SystemLogger.h:101
ExecutionContextProfile class.
Definition ExecutionContextProfile.h:51
void setObjRef(RTC::ExecutionContextService_ptr ec_ptr)
Setting a CORBA object reference.
virtual ~ExecutionContextProfile()
Destructor.
RTC::ReturnCode_t addComponent(RTC::LightweightRTObject_ptr comp)
Add an RT-component.
const RTC::RTCList & getComponentList() const
Getting participant RTC list.
RTC::ReturnCode_t removeComponent(RTC::LightweightRTObject_ptr comp)
Remove the RT-Component from participant list.
void setProperties(coil::Properties &props)
Setting Properties.
RTC::ExecutionContextProfile * getProfile()
Getting Profile.
RTC::ReturnCode_t setKind(RTC::ExecutionKind kind)
Set the ExecutionKind.
RTC::ReturnCode_t setOwner(RTC::LightweightRTObject_ptr comp)
Setting owner component of the execution context.
void lock() const
Getting a lock of RTC::ExecutionContextProfile.
const char * getKindString() const
Definition ExecutionContextProfile.h:217
const RTC::ExecutionContextProfile & getProfile() const
Getting Profile.
std::chrono::nanoseconds getPeriod() const
RTC::ReturnCode_t setRate(double rate)
Set execution rate(Hz) of ExecutionContext.
RTC::ExecutionKind getKind() const
Get the ExecutionKind.
double getRate() const
Get execution rate(Hz) of ExecutionContext.
static const char * getKindString(RTC::ExecutionKind kind)
Converting ExecutionKind enum to string.
coil::Properties getProperties() const
Setting Properties.
void unlock() const
Release a lock of the RTC::ExecutionContextProfile.
RTC::ReturnCode_t setPeriod(std::chrono::nanoseconds period)
RTC::ExecutionContextService_ptr getObjRef() const
Get the reference to the CORBA object.
RTC::RTObject_ptr getOwner() const
Getting a reference of the owner component.
ExecutionContextProfile(RTC::ExecutionKind kind=RTC::PERIODIC)
Default Constructor.
Definition ExecutionContextProfile.h:29