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

    Nested classes/interfaces inherited from class java.lang.Thread

    java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static RefinementController instance
    static instance variable for implementation of Singleton pattern

    Fields inherited from class java.lang.Thread

    MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
  • 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 class
    static void main​(GraphCode query, MMFGCollection collection)
    main method to start the refinement application in the context of GMAF UI
    static 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • main

      public static void main​(GraphCode query, MMFGCollection collection)
      main method to start the refinement application in the context of GMAF UI
      Parameters:
      query - the query to be refined
      collection - 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

      public static void createInstance​(GraphCode query, MMFGCollection collection)
      initializes the single instance of this class
      Parameters:
      query - the query to be refined
      collection - 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 interface java.lang.Runnable
      Overrides:
      run in class java.lang.Thread