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

Class Algorithm

source code

Class to define user algorithm.

Instance Methods [hide private]
 
__appendResult__(self, item, result) source code
 
__init__(self) source code
 
getResults(self)
returns the up-to-date results from what has been processed by this algorithm object.
source code
 
process(self, item)
implements how to deal with the given data item.
source code
Class Variables [hide private]
  _attributes = 'results'
Method Details [hide private]

process(self, item)

source code 

implements how to deal with the given data item. The output of the process can be appended to the self.results dictionary by calling self.__appendResult__(item, result).

Since: 0.0.1

Author: Hurng-Chun Lee

Contact: hurngchunlee@gmail.com

@param item is the sigle item from the data collection @return True if the item is properly processed; otherwise False