org.gcube.indexmanagement.featureindexlibrary.commons
Class LookupParams

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.LookupParams

public class LookupParams
extends Object

Lookup parameters

Author:
UoA

Constructor Summary
LookupParams(FIEnums.AlgoType algo, FIEnums.DistanceTypes dist, boolean weighted)
          Creates a new instance
 
Method Summary
 FIEnums.AlgoType getAlgo()
          Retreves the algorithm
 FIEnums.DistanceTypes getDist()
          Retrieves teh distance measure
 boolean isWeighted()
          Checks if weights are used
 void setAlgo(FIEnums.AlgoType algo)
          Sets teh algorithm
 void setDist(FIEnums.DistanceTypes dist)
          Sets the distance measure
 void setWeighted(boolean weighted)
          Sets if weights should be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupParams

public LookupParams(FIEnums.AlgoType algo,
                    FIEnums.DistanceTypes dist,
                    boolean weighted)
Creates a new instance

Parameters:
algo - The lookup algorithm to use
dist - The distance to use
weighted - use weights
Method Detail

getAlgo

public FIEnums.AlgoType getAlgo()
Retreves the algorithm

Returns:
The algorithm

setAlgo

public void setAlgo(FIEnums.AlgoType algo)
Sets teh algorithm

Parameters:
algo - The algorithm

getDist

public FIEnums.DistanceTypes getDist()
Retrieves teh distance measure

Returns:
The distnace measure

setDist

public void setDist(FIEnums.DistanceTypes dist)
Sets the distance measure

Parameters:
dist - The distance measure

isWeighted

public boolean isWeighted()
Checks if weights are used

Returns:
true if weights are used, false otherwise

setWeighted

public void setWeighted(boolean weighted)
Sets if weights should be used

Parameters:
weighted - true, or false


Copyright © 2013. All Rights Reserved.