Package de.swa.fuh.qrefinement.qrm
Class RefinementController
java.lang.Object
java.lang.Thread
de.swa.fuh.qrefinement.qrm.RefinementController
- All Implemented Interfaces:
java.lang.Runnable
public class RefinementController
extends java.lang.Thread
RefinementController class containing static main method to be executed on startup.
- Author:
- Nicolas Boch
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static RefinementController
instance
static instance variable for implementation of Singleton pattern -
Constructor Summary
Constructors Constructor Description RefinementController()
-
Method Summary
Modifier and Type Method Description static void
createInstance(GraphCode query, MMFGCollection collection)
initializes the single instance of this classstatic void
main(GraphCode query, MMFGCollection collection)
main method to start the refinement application in the context of GMAF UIstatic void
main(java.lang.String[] args)
main method to start the application as a stand alone tool.void
run()
Overriding run method from Thread class.Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
instance
static instance variable for implementation of Singleton pattern
-
-
Constructor Details
-
RefinementController
public RefinementController()
-
-
Method Details
-
main
main method to start the refinement application in the context of GMAF UI- Parameters:
query
- the query to be refinedcollection
- the collection containing references to all assets
-
main
public static void main(java.lang.String[] args)main method to start the application as a stand alone tool. Only used for test purpose to start the application from command line.- Parameters:
args
-
-
createInstance
initializes the single instance of this class- Parameters:
query
- the query to be refinedcollection
- the collection containing references to all assets
-
run
public void run()Overriding run method from Thread class. Initializes the UI of the application and deep copies all MMFG references in the collection to assure a handling of the collection that is independent from the calling GMAF implementation- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-