Public Member Functions
|ConditionInterface *||clone () const|
|ConditionDuration (nsecs t, bool invert=false)|
|virtual bool||evaluate ()|
|Evaluate the Condition and return the outcome. |
|virtual void||reset ()|
A conditional that evaluates true after a certain time has passed. The behaviour can be inverted upon construction.
Definition at line 54 of file ConditionDuration.hpp.
|typedef os::TimeService::nsecs RTT::scripting::ConditionDuration::nsecs
Definition at line 57 of file ConditionDuration.hpp.
|typedef os::TimeService::ticks RTT::scripting::ConditionDuration::ticks
Definition at line 58 of file ConditionDuration.hpp.
Create a condition that changes after t nano seconds
|t||the period of time starting from reset()|
|invert||If false (default) then the condition will raise to true after t. If true then the condition will fall to false after t.|
Definition at line 47 of file ConditionDuration.cpp.
Definition at line 52 of file ConditionDuration.cpp.
|ConditionInterface * RTT::ConditionDuration::clone||(||)|| const
The Clone Software Pattern.
Definition at line 65 of file ConditionDuration.cpp.
Evaluate the Condition and return the outcome.
Definition at line 55 of file ConditionDuration.cpp.
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 60 of file ConditionDuration.cpp.
Invert the time comparison to 'smaller then'
Definition at line 96 of file ConditionDuration.hpp.
A local reference to the HeartBeat Generator
Definition at line 87 of file ConditionDuration.hpp.
The time the evaluation is called the first time
Definition at line 91 of file ConditionDuration.hpp.
The expiration time, expressed in ticks
Definition at line 83 of file ConditionDuration.hpp.