Classes | Public Member Functions | Protected Member Functions | Protected Attributes
OCL::TimerComponent Class Reference

A Component interface to the Real-Time types::Toolkit's timer. It must be configured with a Activity which will emit the timeout event of this component. More...

#include <TimerComponent.hpp>

Inheritance diagram for OCL::TimerComponent:
Inheritance graph
[legend]

List of all members.

Classes

struct  TimeoutCatcher

Public Member Functions

 TimerComponent (std::string name="os::Timer")
virtual ~TimerComponent ()

Protected Member Functions

bool isTimerExpired (RTT::os::Timer::TimerId id) const
bool startHook ()
void stopHook ()
void updateHook ()
bool wait (RTT::os::Timer::TimerId id, double seconds)
bool waitFor (RTT::os::Timer::TimerId id)

Protected Attributes

OutputPort
< RTT::os::Timer::TimerId
mtimeoutEvent
TimeoutCatcher mtimer
std::vector< OutputPort
< RTT::os::Timer::TimerId > * > 
port_timers
RTT::Operation< bool(RTT::os::Timer::TimerId,
double)> 
waitCommand
RTT::Operation< bool(RTT::os::Timer::TimerId)> waitForCommand

Detailed Description

A Component interface to the Real-Time types::Toolkit's timer. It must be configured with a Activity which will emit the timeout event of this component.

Definition at line 21 of file TimerComponent.hpp.


Constructor & Destructor Documentation

OCL::TimerComponent::TimerComponent ( std::string  name = "os::Timer")

Set up a component for timing events.

Definition at line 14 of file TimerComponent.cpp.

Definition at line 40 of file TimerComponent.cpp.


Member Function Documentation

Command Condition: return true if id expired.

Definition at line 71 of file TimerComponent.cpp.

bool OCL::TimerComponent::startHook ( ) [protected, virtual]

This hook will check if a Activity has been properly setup.

Reimplemented from RTT::base::TaskCore.

Definition at line 46 of file TimerComponent.cpp.

void OCL::TimerComponent::stopHook ( ) [protected, virtual]

Reimplemented from RTT::base::TaskCore.

Definition at line 56 of file TimerComponent.cpp.

void OCL::TimerComponent::updateHook ( ) [protected, virtual]

Reimplemented from RTT::base::TaskCore.

Definition at line 51 of file TimerComponent.cpp.

bool OCL::TimerComponent::wait ( RTT::os::Timer::TimerId  id,
double  seconds 
) [protected]

Command Implementation: arm and wait until a timer expires.

Definition at line 61 of file TimerComponent.cpp.

Command Implementation: wait until a timer expires.

Definition at line 66 of file TimerComponent.cpp.


Member Data Documentation

Definition at line 43 of file TimerComponent.hpp.

Definition at line 44 of file TimerComponent.hpp.

Definition at line 42 of file TimerComponent.hpp.

Command: arm and wait until a timer expires.

Definition at line 62 of file TimerComponent.hpp.

Command: wait until a timer expires.

Definition at line 57 of file TimerComponent.hpp.


The documentation for this class was generated from the following files:


ocl
Author(s): OCL Development Team
autogenerated on Sat Jun 8 2019 18:48:55