edu.stanford.rsl.konrad.utils
Class KONRAD

java.lang.Object
  extended by edu.stanford.rsl.konrad.utils.KONRAD

public abstract class KONRAD
extends java.lang.Object


Field Summary
static double DOUBLE_EPSILON
           
static java.lang.String EOL
           
static double FLOAT_EPSILON
           
static long INPUT_QUEUE_DELAY
           
static int INVERSE_SPEEDUP
           
static java.lang.String KONRADBibtex
           
static java.lang.String KONRADDefinition
           
static java.lang.String KONRADMedline
           
static double SMALL_VALUE
           
static boolean useGarbageCollection
           
static java.lang.String VersionString
           
 
Constructor Summary
KONRAD()
           
 
Method Summary
static void gc()
           
static int getNumberOfThreads()
          Returns the number of processors which should be used by KONRAD.
static boolean isUseGarbageCollection()
           
static void setup()
           
static void setUseGarbageCollection(boolean useGarbageCollection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VersionString

public static final java.lang.String VersionString
See Also:
Constant Field Values

KONRADBibtex

public static final java.lang.String KONRADBibtex
See Also:
Constant Field Values

KONRADMedline

public static final java.lang.String KONRADMedline
See Also:
Constant Field Values

KONRADDefinition

public static final java.lang.String KONRADDefinition
See Also:
Constant Field Values

SMALL_VALUE

public static final double SMALL_VALUE
See Also:
Constant Field Values

DOUBLE_EPSILON

public static final double DOUBLE_EPSILON

FLOAT_EPSILON

public static final double FLOAT_EPSILON

INVERSE_SPEEDUP

public static final int INVERSE_SPEEDUP
See Also:
Constant Field Values

useGarbageCollection

public static boolean useGarbageCollection

EOL

public static final java.lang.String EOL

INPUT_QUEUE_DELAY

public static final long INPUT_QUEUE_DELAY
See Also:
Constant Field Values
Constructor Detail

KONRAD

public KONRAD()
Method Detail

setup

public static void setup()

gc

public static void gc()

isUseGarbageCollection

public static boolean isUseGarbageCollection()

setUseGarbageCollection

public static void setUseGarbageCollection(boolean useGarbageCollection)

getNumberOfThreads

public static int getNumberOfThreads()
Returns the number of processors which should be used by KONRAD. Equals Runtime.getRuntime().availableProcessors() if "MAX_THREADS" is not set in KONRAD registry. Otherwise "MAX_THREADS" is the upper bound for availableProcessors().

Returns:
the maximal number of threads