jInfer

cz.cuni.mff.ksi.jinfer.twostep.processing
Interface ClusterProcessor<T>

All Known Implementing Classes:
Alternations, AutomatonMergingState, PassRepresentant, Trie

public interface ClusterProcessor<T>

Process cluster of elements. Interface representing one box in chain. Process one element at a time, given clusterer which can respond to Clusterer.getClusterRepresentant request and Clusterer.getClusters request. And whole cluster containing instances of element found in documents.

Implementors have to take care about thread interruptions. Check for it, and throw InterruptedException in some inner main loop. Example:

 for (...) {
   if (Thread.interrupted()) {
     throw new InterruptedException();
   }
 }
 


Method Summary
 T processCluster(Clusterer<T> clusterer, List<T> rules)
          Do the job - given clusterer and rules, process rules to obtain one representative
 

Method Detail

processCluster

T processCluster(Clusterer<T> clusterer,
                 List<T> rules)
                 throws InterruptedException
Do the job - given clusterer and rules, process rules to obtain one representative

Parameters:
clusterer - used to cluster rules
rules - of one cluster to process
Returns:
representative which have common parameters of cluster
Throws:
InterruptedException

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011