Package gaiasky.util
Class GlobalConf.PerformanceConf
java.lang.Object
gaiasky.util.GlobalConf.PerformanceConf
- All Implemented Interfaces:
GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.PerformanceConf extends java.lang.Object implements GlobalConf.IConf
-
Field Summary
Fields Modifier and Type Field Description boolean
MULTITHREADING
int
NUMBER_THREADS
-
Constructor Summary
Constructors Constructor Description PerformanceConf()
-
Method Summary
Modifier and Type Method Description void
initialize(boolean MULTITHREADING, int NUMBER_THREADS)
int
NUMBER_THREADS()
Returns the actual number of threads.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MULTITHREADING
public boolean MULTITHREADING -
NUMBER_THREADS
public int NUMBER_THREADS
-
-
Constructor Details
-
PerformanceConf
public PerformanceConf()
-
-
Method Details
-
initialize
public void initialize(boolean MULTITHREADING, int NUMBER_THREADS) -
NUMBER_THREADS
public int NUMBER_THREADS()Returns the actual number of threads. It accounts for the number of threads being 0 or less, "let the program decide" option, in which case the number of processors is returned- Returns:
- The number of threads
-