Public Member Functions | Private Member Functions | Private Attributes
rtshell.plan.DelayedCondition Class Reference
Inheritance diagram for rtshell.plan.DelayedCondition:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__
def cancel
def run
def start
def wait_for_exit

Private Member Functions

def _check_timeout
def _set_error

Private Attributes

 _cancel_lock
 _cancelled
 _error
 _immediate
 _satisfied
 _start_time
 _timeout

Detailed Description

Base class for delayed conditions.

Inheriting condition objects should implement the @ref check method,
returning True or False appropriately.

Delayed conditions start a separate thread, which they use to perform their
condition check at an appropriate time. They use the reference to their
owner to signal it that the condition has been met. If their condition is
not met within an optional timeout (specified in ms), @ref
PrecedingTimeoutError is set. Set the timeout to None for no timeout.

Once a delayed condition is satisfied, you should ensure its thread has
completed by calling @ref wait_for_exit.

Definition at line 339 of file plan.py.


Constructor & Destructor Documentation

def rtshell.plan.DelayedCondition.__init__ (   self,
  timeout = None,
  args,
  kwargs 
)

Definition at line 355 of file plan.py.


Member Function Documentation

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 363 of file plan.py.

Definition at line 401 of file plan.py.

def rtshell.plan.DelayedCondition._set_error (   self,
  e 
) [private]

Definition at line 405 of file plan.py.

Reimplemented from rtshell.plan.BasicCondition.

Reimplemented in rtshell.plan.EventCondition.

Definition at line 367 of file plan.py.

Definition at line 377 of file plan.py.

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 371 of file plan.py.

Wait for this condition's thread to exit.

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 374 of file plan.py.


Member Data Documentation

Definition at line 355 of file plan.py.

Definition at line 355 of file plan.py.

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 405 of file plan.py.

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 355 of file plan.py.

Reimplemented from rtshell.plan.BasicCondition.

Definition at line 355 of file plan.py.

Definition at line 377 of file plan.py.

Definition at line 355 of file plan.py.


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


rtshell
Author(s): Geoffrey Biggs
autogenerated on Fri Aug 28 2015 12:55:12