Package org.ojalgo.machine
Class BasicMachine
- java.lang.Object
-
- org.ojalgo.machine.BasicMachine
-
- Direct Known Subclasses:
CommonMachine
public class BasicMachine extends java.lang.Object
How much memory, and how many threads share that memory. Used to describe either total system resources (system RAM and total number of threads handled by the processors) or a cache (processor's L1, L2 or L3 cache).
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BYTES
private static java.lang.String
GIGA
private static java.lang.String
KILO
private static java.lang.String
MEGA
long
memory
private static java.lang.String
THREAD
int
threads
private static java.lang.String
THREADS
-
Constructor Summary
Constructors Constructor Description BasicMachine(long memoryBytes, int nbThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
BYTES
private static final java.lang.String BYTES
- See Also:
- Constant Field Values
-
GIGA
private static final java.lang.String GIGA
- See Also:
- Constant Field Values
-
KILO
private static final java.lang.String KILO
- See Also:
- Constant Field Values
-
MEGA
private static final java.lang.String MEGA
- See Also:
- Constant Field Values
-
THREAD
private static final java.lang.String THREAD
- See Also:
- Constant Field Values
-
THREADS
private static final java.lang.String THREADS
- See Also:
- Constant Field Values
-
memory
public final long memory
-
threads
public final int threads
-
-