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

Quick Search    Search Deep

recoin.container
Class MergedResultList  view MergedResultList download MergedResultList.java

java.lang.Object
  extended byrecoin.group.ComponentSupportImpl
      extended byrecoin.container.ResultList
          extended byrecoin.container.MergedResultList
All Implemented Interfaces:
recoin.group.ComponentSupport, java.io.Serializable

public class MergedResultList
extends ResultList

A special type of ResultList containing MergedResult objects.

Version:
0.2.9

Field Summary
 
Fields inherited from class recoin.container.ResultList
logger, resultClass, results
 
Fields inherited from class recoin.group.ComponentSupportImpl
chainID, classname, description, id, name
 
Constructor Summary
MergedResultList()
           
 
Method Summary
 void addResult(RetrievalResult result, float weight)
          Adds the specified RetrievalResult to this MergedResultList and sets the result's ResultList field to this MergedResultList.
If there already exists a MergedResult that equals the RetrievalResult, it is added to the existing MergedResult, otherwise a new MergedResult is created using the specified RetrievalResult and weight.
 
Methods inherited from class recoin.container.ResultList
addResult, getResultCount, getResults, setResultClass, setResults
 
Methods inherited from class recoin.group.ComponentSupportImpl
getChainID, getClassname, getDescription, getID, getName, setChainID, setClassname, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergedResultList

public MergedResultList()
Method Detail

addResult

public void addResult(RetrievalResult result,
                      float weight)
Adds the specified RetrievalResult to this MergedResultList and sets the result's ResultList field to this MergedResultList.
If there already exists a MergedResult that equals the RetrievalResult, it is added to the existing MergedResult, otherwise a new MergedResult is created using the specified RetrievalResult and weight.