#include <ConditionExpire.hpp>
Public Member Functions | |
virtual ConditionInterface * | clone () const |
ConditionExpire (ticks t) | |
virtual bool | evaluate () |
Evaluate the Condition and return the outcome. More... | |
virtual void | reset () |
virtual | ~ConditionExpire () |
Public Member Functions inherited from RTT::scripting::ConditionInterface | |
virtual ConditionInterface * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const |
virtual | ~ConditionInterface () |
Private Types | |
typedef os::TimeService::ticks | ticks |
Private Attributes | |
os::TimeService * | hb |
ticks | time |
ticks | timestamp |
A conditional that evaluates true until a certain time has elapsed since construction or the last reset()
Definition at line 54 of file ConditionExpire.hpp.
|
private |
Definition at line 57 of file ConditionExpire.hpp.
|
inline |
Create a Condition that evaluates to false when t is reached
t | the time in os::TimeService::ticks on and after which the condition will evaluate to false |
Definition at line 65 of file ConditionExpire.hpp.
|
inlinevirtual |
Definition at line 71 of file ConditionExpire.hpp.
|
inlinevirtual |
The Clone Software Pattern.
Implements RTT::scripting::ConditionInterface.
Definition at line 84 of file ConditionExpire.hpp.
|
inlinevirtual |
Evaluate the Condition and return the outcome.
Implements RTT::scripting::ConditionInterface.
Definition at line 74 of file ConditionExpire.hpp.
|
inlinevirtual |
Some conditions need to be reset at some points. E.g. a scripting::ConditionDuration counts the time since the first time a Command was executed, and if this time exceeds a certain preset time, returns true. Therefore, it needs to be reset, i.e. it needs to start counting, when the command is first executed.. scripting::ConditionOnce has a similar need. This function is called at such times.
Reimplemented from RTT::scripting::ConditionInterface.
Definition at line 79 of file ConditionExpire.hpp.
|
private |
A local reference to the HeartBeat Generator
Definition at line 98 of file ConditionExpire.hpp.
|
private |
The expiration time, expressed in ticks
Definition at line 93 of file ConditionExpire.hpp.
|
private |
Definition at line 94 of file ConditionExpire.hpp.