Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef
Class CLEFLanguageMerger  view CLEFLanguageMerger download CLEFLanguageMerger.java

java.lang.Object
  extended byrecoin.group.ComponentWorker
      extended byrecoinx.clef.CLEFLanguageMerger

public class CLEFLanguageMerger
extends recoin.group.ComponentWorker

Merges CLEFResultLists that share the same language. The CLEFResults are merged according to weights assigned for the different databases.

Version:
0.2.9

Nested Class Summary
protected  class CLEFLanguageMerger.LanguageMergerRunnable
          The LanguageMergerRunnable class implements the behavior of a ComponentRunnable that merges CLEFResultLists of the same language into a MergedList.
 
Field Summary
protected  java.util.Hashtable componentWeights
          The weights for the CLEFResultLists from different components.
The chain ID of the component is used as the key in this Hashtable.
(package private) static org.apache.log4j.Logger logger
          The logger of this class.
 
Fields inherited from class recoin.group.ComponentWorker
component
 
Constructor Summary
CLEFLanguageMerger()
          Creates a new CLEFLanguageMerger.
 
Method Summary
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container)
          Creates and returns a new ComponentRunnable using the specified RetrievalContainer.
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container, java.util.Vector supports)
          Creates and returns a new ComponentRunnable using the specified RetrievalContainer and ComponentSupport objects.
 recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container, java.util.Vector supports, recoin.group.ComponentRunnable runnable)
          Creates and returns a new ComponentRunnable using the specified RetrievalContainer, ComponentSupport objects and ComponentRunnable.
 void initiate(recoin.group.Component c)
          Initiates this CLEFLanguageMerger by passing the specified Component to the superclass's initiate method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentWeights

protected java.util.Hashtable componentWeights
The weights for the CLEFResultLists from different components.
The chain ID of the component is used as the key in this Hashtable. The values are extracted from the attributes by combining the information in the value field of the attribute. The name of the attribute has to start with 'weight' to be recognized.

Example: Attributename: weightMySQL1 Value: 3[7]:1.45

This would merge all CLEFResultLists that were created by the Component with the chain ID '3[7]' by multiplying their scores with 1.45.


logger

static org.apache.log4j.Logger logger
The logger of this class.

Constructor Detail

CLEFLanguageMerger

public CLEFLanguageMerger()
Creates a new CLEFLanguageMerger.

Method Detail

initiate

public void initiate(recoin.group.Component c)
              throws recoin.exception.InitiationException
Initiates this CLEFLanguageMerger by passing the specified Component to the superclass's initiate method. Furthermore the Component is examined to see if any attributes beginning with 'weight...' have been specified.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container)
Description copied from class: recoin.group.ComponentWorker
Creates and returns a new ComponentRunnable using the specified RetrievalContainer.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
                                                              java.util.Vector supports)
Description copied from class: recoin.group.ComponentWorker
Creates and returns a new ComponentRunnable using the specified RetrievalContainer and ComponentSupport objects.


createComponentRunnable

public recoin.group.ComponentRunnable createComponentRunnable(recoin.container.RetrievalContainer container,
                                                              java.util.Vector supports,
                                                              recoin.group.ComponentRunnable runnable)
Description copied from class: recoin.group.ComponentWorker
Creates and returns a new ComponentRunnable using the specified RetrievalContainer, ComponentSupport objects and ComponentRunnable.