Package Ganga :: Package Core :: Package GangaThread :: Package MTRunner :: Module Data' :: Class Data
[hide private]
[frames] | no frames]

Class Data

source code

Class to define user dataset collection.

Instance Methods [hide private]
 
__init__(self, collection=[]) source code
 
addItem(self, item)
try to put a new item in the queue.
source code
 
getCollection(self) source code
 
getNextItem(self)
try to get the next item in the queue after waiting in max.
source code
 
isEmpty(self)
checks if the bounded queue is empty.
source code
Class Variables [hide private]
  _attributes = ('collection', 'queue')
Method Details [hide private]

addItem(self, item)

source code 

try to put a new item in the queue. As the queue is defined with infinity number of slots, it should never throw "Queue.Full" exception.

getNextItem(self)

source code 

try to get the next item in the queue after waiting in max. 1 sec.

if nothing available, the exception "Queue.Empty" will be thrown.