public final class MemorySolution
extends java.lang.Object
MemorySolution represents a solution (test data) for a number of dependent instruction
calls (memory access structure).
Solution includes test data for individual memory accesses (see AddressObject) and
a set of entries to be written into the devices (buffers).
| Constructor and Description |
|---|
MemorySolution(MemoryAccessStructure structure)
Constructs an uninitialized solution for the given memory access structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(MmuBuffer device,
EntryObject entry)
Adds the entry to the set of entries to be written to the given device.
|
AddressObject |
getAddressObject(int i)
Returns the test data for the i-th execution.
|
java.util.List<AddressObject> |
getAddressObjects()
Returns the test data for all executions.
|
java.util.Map<java.lang.Long,EntryObject> |
getEntries(MmuBuffer device)
Returns the entries to written to the given device.
|
MemoryLoader |
getLoader()
Returns the memory loader.
|
MemoryAccessStructure |
getStructure() |
void |
setAddressObject(int i,
AddressObject testData)
Sets the test data for the i-th execution.
|
void |
setEntries(MmuBuffer device,
java.util.Map<java.lang.Long,EntryObject> entries)
Sets the entries to be written to the given device.
|
int |
size()
Returns the number of executions in the memory access structure.
|
public MemorySolution(MemoryAccessStructure structure)
structure - the memory access structure.public int size()
public MemoryAccessStructure getStructure()
public AddressObject getAddressObject(int i)
i - the execution index.java.lang.IndexOutOfBoundsException - if i is out of bounds.public java.util.List<AddressObject> getAddressObjects()
public void setAddressObject(int i,
AddressObject testData)
i - the execution index.testData - the test data to be set.java.lang.IndexOutOfBoundsException - if i is out of bounds.public MemoryLoader getLoader()
public java.util.Map<java.lang.Long,EntryObject> getEntries(MmuBuffer device)
device - the MMU device (buffer).java.lang.IllegalArgumentException - if device is null.public void setEntries(MmuBuffer device, java.util.Map<java.lang.Long,EntryObject> entries)
device - the MMU device (buffer).entries - the entries to be written.java.lang.IllegalArgumentException - if some parameters are null.public void addEntry(MmuBuffer device, EntryObject entry)
device - the MMU device (buffer).entry - the entry to be added.java.lang.IllegalArgumentException - if some parameters are null.