public class MemoryDependency
extends java.lang.Object
| Constructor and Description |
|---|
MemoryDependency()
Constructs a dependency.
|
MemoryDependency(MemoryDependency dependency)
Constructs a copy of the dependency.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHazard(MemoryHazard hazard)
Adds the conflict to the dependency.
|
boolean |
contains(MmuAddressInstance address,
MemoryHazard.Type hazardType)
Checks whether the dependency contains a conflict of the given type.
|
boolean |
contains(MmuBuffer device,
MemoryHazard.Type hazardType)
Checks whether the dependency contains a conflict of the given type.
|
MemoryHazard |
getHazard(MmuBuffer device)
Returns the conflict of the device.
|
java.util.List<MemoryHazard> |
getHazards()
Returns the list of conflicts of the dependency.
|
java.lang.String |
toString() |
public MemoryDependency()
public MemoryDependency(MemoryDependency dependency)
dependency - the dependency to be copied.java.lang.IllegalArgumentException - if dependency is null.public java.util.List<MemoryHazard> getHazards()
public void addHazard(MemoryHazard hazard)
hazard - the conflict.java.lang.IllegalArgumentException - if hazard is null.public MemoryHazard getHazard(MmuBuffer device)
device - the device.java.lang.IllegalArgumentException - if device is null.public boolean contains(MmuBuffer device, MemoryHazard.Type hazardType)
device - the device touched upon a conflict.hazardType - the conflict type.true if the dependency contains a conflict of the given type; false
otherwise.java.lang.IllegalArgumentException - if device or hazardType is null.public boolean contains(MmuAddressInstance address, MemoryHazard.Type hazardType)
address - the address touched upon a conflict.hazardType - the conflict type.true if the dependency contains a conflict of the given type; false
otherwise.java.lang.IllegalArgumentException - if address or hazardType is null.public java.lang.String toString()
toString in class java.lang.Object