Package implementation
Class NeighborsImplementation
- java.lang.Object
-
- implementation.NeighborsImplementation
-
public class NeighborsImplementation extends java.lang.Object
Static methods for a basic implementation- Author:
- nk-fouque
- See Also:
ImplementationExample.main(String[])
-
-
Constructor Summary
Constructors Constructor Description 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 truestatic CollectionsModel
loadModelFromFile(java.lang.String filename, java.lang.String format, boolean verbose)
Creates aCollectionsModel
from a filestatic void
myLogsLevels(java.lang.String level)
Sets up all the loggers required by the partition algorithm
-
-
-
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 aCollectionsModel
from a file- Parameters:
filename
- The absolute path of the file on the systemformat
- The format the file is written in, see Jena documentation for supported formatsverbose
- 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
-
-