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 void
addPriorityToConfig(java.lang.Class<?> c, java.lang.String relationship, int priority)
double
getA()
RelevanceFeedback
getAlgorithm()
java.util.Set<java.lang.String>
getAlgorithmNames()
java.util.Hashtable<java.lang.String,java.lang.Class<?>>
getAlgorithms()
double
getB()
double
getC()
static RefinementUIModel
getInstance()
Implementation of Singleton pattern.Querying
getQueryMetric()
int[]
getRelationshipWeights()
java.io.File
getSelectedAsset()
returns a File reference to the currently selected assetvoid
registerAlgorithm(java.lang.String classname, java.lang.ClassLoader loader)
void
setA(double input)
void
setAlgorithm(RelevanceFeedback rf)
void
setAlgorithm(java.lang.String name)
void
setB(double input)
void
setC(double input)
void
setQueryMetric(Querying q)
void
setSelectedAsset(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()
-