Class NeighborsImplementation

    • Method Summary

      Modifier and Type Method Description
      static sun.misc.SignalHandler interruptCutter​(java.util.concurrent.atomic.AtomicBoolean interrupted, java.util.Collection<java.lang.Thread> toInterrupt)
      Creates a SignalHandler that, when triggered, sets a boolean to true
      static CollectionsModel loadModelFromFile​(java.lang.String filename, java.lang.String format, boolean verbose)
      Creates a CollectionsModel from a file
      static void myLogsLevels​(java.lang.String level)
      Sets up all the loggers required by the partition algorithm
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NeighborsImplementation

        public NeighborsImplementation()
    • Method Detail

      • myLogsLevels

        public static void myLogsLevels​(java.lang.String level)
        Sets up all the loggers required by the partition algorithm
        Parameters:
        level - "verbous" : Gives almost every details possible "silent" : Only shows how far the partition algorithm is, to be able to tell i "off" : Nothing
      • loadModelFromFile

        public static CollectionsModel loadModelFromFile​(java.lang.String filename,
                                                         java.lang.String format,
                                                         boolean verbose)
                                                  throws java.io.IOException
        Creates a CollectionsModel from a file
        Parameters:
        filename - The absolute path of the file on the system
        format - The format the file is written in, see Jena documentation for supported formats
        verbose - Whether the models should be printed on console after loading
        Returns:
        Throws:
        java.io.IOException
      • interruptCutter

        public static sun.misc.SignalHandler interruptCutter​(java.util.concurrent.atomic.AtomicBoolean interrupted,
                                                             java.util.Collection<java.lang.Thread> toInterrupt)
        Creates a SignalHandler that, when triggered, sets a boolean to true
        Parameters:
        interrupted - the AtomicBoolean to set true
        Returns:
        a generic SignalHandler