Package de.swa.fuh.qrefinement.qrm
Class RefinementUIModel
java.lang.Object
de.swa.fuh.qrefinement.qrm.RefinementUIModel
public class RefinementUIModel
extends java.lang.Object
class representing data relevant for all UI components. Only one instance of this class is allowed to exist at the same time (Singleton)
- Author:
- Nicolas Boch
-
Constructor Summary
Constructors Constructor Description RefinementUIModel()replace the single instance by a new instance or create an instance of this class for the first time. -
Method Summary
Modifier and Type Method Description voidaddPriorityToConfig(java.lang.Class<?> c, java.lang.String relationship, int priority)doublegetA()RelevanceFeedbackgetAlgorithm()java.util.Set<java.lang.String>getAlgorithmNames()java.util.Hashtable<java.lang.String,java.lang.Class<?>>getAlgorithms()doublegetB()doublegetC()static RefinementUIModelgetInstance()Implementation of Singleton pattern.QueryinggetQueryMetric()int[]getRelationshipWeights()java.io.FilegetSelectedAsset()returns a File reference to the currently selected assetvoidregisterAlgorithm(java.lang.String classname, java.lang.ClassLoader loader)voidsetA(double input)voidsetAlgorithm(RelevanceFeedback rf)voidsetAlgorithm(java.lang.String name)voidsetB(double input)voidsetC(double input)voidsetQueryMetric(Querying q)voidsetSelectedAsset(java.io.File f)Resets the currently selected asset.
-
Constructor Details
-
RefinementUIModel
public RefinementUIModel()replace the single instance by a new instance or create an instance of this class for the first time.
-
-
Method Details
-
getSelectedAsset
public java.io.File getSelectedAsset()returns a File reference to the currently selected asset -
setSelectedAsset
public void setSelectedAsset(java.io.File f)Resets the currently selected asset.- Parameters:
f- File reference to the new selection
-
getInstance
Implementation of Singleton pattern. Returns the single instance of this class. -
getAlgorithm
-
setAlgorithm
public void setAlgorithm(java.lang.String name) -
setAlgorithm
-
getAlgorithmNames
public java.util.Set<java.lang.String> getAlgorithmNames() -
getQueryMetric
-
setQueryMetric
-
getA
public double getA() -
setA
public void setA(double input) -
getB
public double getB() -
setB
public void setB(double input) -
getC
public double getC() -
setC
public void setC(double input) -
getAlgorithms
public java.util.Hashtable<java.lang.String,java.lang.Class<?>> getAlgorithms() -
registerAlgorithm
public void registerAlgorithm(java.lang.String classname, java.lang.ClassLoader loader) -
addPriorityToConfig
public void addPriorityToConfig(java.lang.Class<?> c, java.lang.String relationship, int priority) -
getRelationshipWeights
public int[] getRelationshipWeights()
-