org.gcube.indexmanagement.featureindexlibrary.merger
Class RankedMergeElement

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.merger.RankedMergeElement

public class RankedMergeElement
extends Object

Element holding results and their respective weights

Author:
UoA

Constructor Summary
RankedMergeElement(ArrayList<RankedResultElement> results, float weight)
          Creates a new instance
 
Method Summary
 ArrayList<RankedResultElement> getResults()
          Retrieves teh results
 float getWeight()
          Retrieves the weights
 void setResults(ArrayList<RankedResultElement> results)
          Sets the results
 void setWeight(float weight)
          Sets the weight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankedMergeElement

public RankedMergeElement(ArrayList<RankedResultElement> results,
                          float weight)
Creates a new instance

Parameters:
results - The results
weight - The weight
Method Detail

getResults

public ArrayList<RankedResultElement> getResults()
Retrieves teh results

Returns:
The results

setResults

public void setResults(ArrayList<RankedResultElement> results)
Sets the results

Parameters:
results - The results

getWeight

public float getWeight()
Retrieves the weights

Returns:
The weights

setWeight

public void setWeight(float weight)
Sets the weight

Parameters:
weight - The weight


Copyright © 2012. All Rights Reserved.