Package CyberRail :: Package common :: Module communicationmanager :: Class TimeoutsManagement
[hide private]
[frames] | no frames]

Class TimeoutsManagement

source code


Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addTimeout(self, timeout, payload)
Add a new timeout in the list.
source code
 
cancelTimeout(self, handle)
Remove the handle from the list
source code
 
getNextTimeout(self)
Return the next timeout to wait for or None if there is no reason to timeout.
source code
 
popPastEvents(self)
Return, and remove, the events that have to be treated.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addTimeout(self, timeout, payload)

source code 

Add a new timeout in the list.

Parameters:
  • timeout - time to wait, in seconds, as a float
  • payload - some data which will be given back when event will arise.
Returns:
a handle to manage the new event

getNextTimeout(self)

source code 

Return the next timeout to wait for or None if there is no reason to timeout.

Returns:
timeout, in milliseconds