Package de.swa.fuh.qrefinement.qrm
Class RefinementCollection
java.lang.Object
de.swa.fuh.qrefinement.qrm.RefinementCollection
public class RefinementCollection
extends java.lang.Object
Class representing the collection of all assets
- Author:
- Nicolas Boch
-
Method Summary
Modifier and Type Method Description static voidclear()set the single instance of this class to null.java.util.Hashtable<MMFG,GraphCode>getCache()java.util.Vector<MMFG>getCollection()returns the collection of MMFGsjava.util.Vector<GraphCode>getCollectionGraphCodes()returns a vector of all collection's Graph CodesGraphCodegetCurrentQuery()returns the last executed querystatic RefinementCollectiongetInstance()singleton pattern accessjava.lang.StringgetName()returns the collection nameGraphCodegetOrGenerateGraphCode(MMFG mmfg)returns or generates a Graph Code for a given MMFGjava.util.Vector<MMFG>getRecommendedAssets(GraphCode gcQuery)returns recommended assets based on a Graph Code queryjava.util.Hashtable<java.io.File,AssetRectangles>getRelevanceMarks()Returns the mapping of image assets to relevance marksjava.util.Vector<MMFG>getSimilarAssets(GraphCode gcQuery)returns similar assets based on a Graph Code queryjava.util.Hashtable<java.io.File,AssetTextMarks>getTextRelevanceMarks()Returns the mapping of text assets to relevance marksvoidinit()Initializes the mapping of asset files to relevance marksvoidquery(GraphCode gcQuery)executes a queryvoidqueryVRM(GraphCode gcQuery)voidsetCurrentQuery(GraphCode gc)static voidsetInstance(MMFGCollection coll)initialize the single instance of this class by cloning an existing collection of assets
-
Method Details
-
getInstance
singleton pattern access -
setInstance
initialize the single instance of this class by cloning an existing collection of assets- Parameters:
coll-
-
clear
public static void clear()set the single instance of this class to null. Should be called when closing the refinement application but not exiting the whole GMAF application. -
init
public void init()Initializes the mapping of asset files to relevance marks -
getRelevanceMarks
Returns the mapping of image assets to relevance marks -
getTextRelevanceMarks
Returns the mapping of text assets to relevance marks -
getCollection
returns the collection of MMFGs -
getName
public java.lang.String getName()returns the collection name -
getCurrentQuery
returns the last executed query -
getCollectionGraphCodes
returns a vector of all collection's Graph Codes -
getOrGenerateGraphCode
returns or generates a Graph Code for a given MMFG -
getSimilarAssets
returns similar assets based on a Graph Code query -
getRecommendedAssets
returns recommended assets based on a Graph Code query -
setCurrentQuery
-
getCache
-
query
executes a query -
queryVRM
-