public static enum BufferHazard.Type extends java.lang.Enum<BufferHazard.Type>
Enum Constant and Description |
---|
INDEX_NOT_EQUAL
The conflict of the kind
Index1 != Index2 . |
TAG_EQUAL
The conflict of the kind
Index1 == Index2 && Tag1 == Tag2 . |
TAG_NOT_EQUAL
The conflict of the kind
Index1 == Index2 && Tag1 != Tag2 . |
TAG_NOT_REPLACED
The conflict of the kind
Index1 == Index2 && Tag1 != Tag2 && Tag1 != Replaced2 . |
TAG_REPLACED
The conflict of the kind
Index1 == Index2 && Tag1 != Tag2 && Tag1 == Replaced2 . |
Modifier and Type | Method and Description |
---|---|
abstract MmuCondition |
getCondition(MmuBufferAccess bufferAccess1,
MmuBufferAccess bufferAccess2)
Returns the condition that characterizes the conflict between two buffer accesses.
|
java.lang.String |
getName() |
boolean |
isEquality() |
static BufferHazard.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BufferHazard.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferHazard.Type INDEX_NOT_EQUAL
Index1 != Index2
.public static final BufferHazard.Type TAG_NOT_EQUAL
Index1 == Index2 && Tag1 != Tag2
.public static final BufferHazard.Type TAG_NOT_REPLACED
Index1 == Index2 && Tag1 != Tag2 && Tag1 != Replaced2
.public static final BufferHazard.Type TAG_REPLACED
Index1 == Index2 && Tag1 != Tag2 && Tag1 == Replaced2
.public static final BufferHazard.Type TAG_EQUAL
Index1 == Index2 && Tag1 == Tag2
.public static BufferHazard.Type[] values()
for (BufferHazard.Type c : BufferHazard.Type.values()) System.out.println(c);
public static BufferHazard.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public boolean isEquality()
public abstract MmuCondition getCondition(MmuBufferAccess bufferAccess1, MmuBufferAccess bufferAccess2)
bufferAccess1
- the first buffer access.bufferAccess2
- the second buffer access (depends some how on the first one).