Public Member Functions | |
__init__ (name, length=641024) | |
start () | |
stop () | |
receive () |
Use of this class involves the starting of a thread that constantly receives the data arriving in the base class's socket. Keeping the socket drained of data allows the user of this class to get the most recent data received, thus avoiding getting data with a bursty time structure. Whenever the application calls the receive() method, it gets the most recent data sample. Because of the reference counting method used by Python objects, no copy of the data needs to be made to avoid the data changing from underneath the application. The application can hold onto the data reference as long as it likes. Whenever new data appears a new reference is created, and is possibly deleted before the application gets access to it, leaving any existing reference alone. When the application tries to get access to the latest data, it gets a copy of the most recent reference, and the previous reference is deleted, if it has gone out of scope.
Definition at line 25 of file DataDistributorPoll.py.
|
DataDistributorPoll constructor.
|
|
Receive a sampled value of the data and sender information.
|
|
Start the polling thread. |
|
Stop the polling thread. |