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>

List of all members.

Classes

struct  TimeoutCatcher

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

OutputPort
< RTT::os::Timer::TimerId > 
mtimeoutEvent
TimeoutCatcher mtimer
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 install/include/orocos/ocl/TimerComponent.hpp.


Constructor & Destructor Documentation

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

Set up a component for timing events.

Definition at line 7 of file TimerComponent.cpp.

OCL::TimerComponent::~TimerComponent (  )  [virtual]

Definition at line 27 of file TimerComponent.cpp.

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

Set up a component for timing events.

virtual OCL::TimerComponent::~TimerComponent (  )  [virtual]

Member Function Documentation

bool OCL::TimerComponent::isTimerExpired ( RTT::os::Timer::TimerId  id  )  const [protected]

Command Condition: return true if id expired.

bool OCL::TimerComponent::isTimerExpired ( RTT::os::Timer::TimerId  id  )  const [protected]

Command Condition: return true if id expired.

Definition at line 56 of file TimerComponent.cpp.

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

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

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

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

Definition at line 31 of file TimerComponent.cpp.

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

Definition at line 41 of file TimerComponent.cpp.

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

Definition at line 36 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.

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

Command Implementation: arm and wait until a timer expires.

Definition at line 46 of file TimerComponent.cpp.

bool OCL::TimerComponent::waitFor ( RTT::os::Timer::TimerId  id  )  [protected]

Command Implementation: wait until a timer expires.

bool OCL::TimerComponent::waitFor ( RTT::os::Timer::TimerId  id  )  [protected]

Command Implementation: wait until a timer expires.

Definition at line 51 of file TimerComponent.cpp.


Member Data Documentation

OutputPort< RTT::os::Timer::TimerId > OCL::TimerComponent::mtimeoutEvent [protected]
RTT::Operation< bool(RTT::os::Timer::TimerId, double)> OCL::TimerComponent::waitCommand [protected]

Command: arm and wait until a timer expires.

Definition at line 57 of file install/include/orocos/ocl/TimerComponent.hpp.

RTT::Operation< bool(RTT::os::Timer::TimerId)> OCL::TimerComponent::waitForCommand [protected]

Command: wait until a timer expires.

Definition at line 52 of file install/include/orocos/ocl/TimerComponent.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ocl
Author(s): OCL Development Team
autogenerated on Fri Jan 11 09:50:53 2013