- java.lang.Object
-
- org.ojalgo.machine.BasicMachine
-
- Direct Known Subclasses:
CommonMachine
public class BasicMachine extends java.lang.ObjectHow 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.StringBYTESprivate static java.lang.StringGIGAprivate static java.lang.StringKILOprivate static java.lang.StringMEGAlongmemoryprivate static java.lang.StringTHREADintthreadsprivate static java.lang.StringTHREADS
-
Constructor Summary
Constructors Constructor Description BasicMachine(long memoryBytes, int nbThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
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
-
-