public abstract class CommonMachine extends BasicMachine
Hardware and ConcreteMachine.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
architecture |
long |
cache
The size of one top level (L3 or L2) cache unit in bytes.
|
int |
cores
The total number of processor cores.
|
protected static long |
K |
int |
units
The number of top level (L3 or L2) cache units.
|
memory, threads| Modifier | Constructor and Description |
|---|---|
protected |
CommonMachine(Hardware hardware,
java.lang.Runtime runtime) |
protected |
CommonMachine(java.lang.String architecture,
BasicMachine[] levels)
new MemoryThreads[] { SYSTEM, L3, L2, L1 } or
new MemoryThreads[] { SYSTEM, L2, L1 } or in worst case
new MemoryThreads[] { SYSTEM, L1 } |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
toStringprotected static final long K
public final java.lang.String architecture
public final long cache
public final int cores
public final int units
protected CommonMachine(Hardware hardware, java.lang.Runtime runtime)
protected CommonMachine(java.lang.String architecture,
BasicMachine[] levels)
new MemoryThreads[] { SYSTEM, L3, L2, L1 } or
new MemoryThreads[] { SYSTEM, L2, L1 } or in worst case
new MemoryThreads[] { SYSTEM, L1 }architecture - The CPU architecture (like x86 for example).levels - Cache levels.public boolean equals(java.lang.Object obj)
equals in class BasicMachinepublic int hashCode()
hashCode in class BasicMachine