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 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(MmuBufferAccess bufferAccess,
EntryObject entry)
Adds the entry to the set of entries to be written to the given buffer.
|
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<MmuBufferAccess,java.util.Map<java.lang.Long,EntryObject>> |
getEntries()
Returns the entries to written.
|
java.util.Map<java.lang.Long,EntryObject> |
getEntries(MmuBufferAccess bufferAccess)
Returns the entries to written to the given buffer.
|
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(MmuBufferAccess bufferAccess,
java.util.Map<java.lang.Long,EntryObject> entries)
Sets the entries to be written to the given buffer.
|
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<MmuBufferAccess,java.util.Map<java.lang.Long,EntryObject>> getEntries()
public java.util.Map<java.lang.Long,EntryObject> getEntries(MmuBufferAccess bufferAccess)
bufferAccess
- the buffer access.java.lang.IllegalArgumentException
- if device
is null.public void setEntries(MmuBufferAccess bufferAccess, java.util.Map<java.lang.Long,EntryObject> entries)
bufferAccess
- the buffer access.entries
- the entries to be written.java.lang.IllegalArgumentException
- if some parameters are null.public void addEntry(MmuBufferAccess bufferAccess, EntryObject entry)
bufferAccess
- the buffer access.entry
- the entry to be added.java.lang.IllegalArgumentException
- if some parameters are null.