|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.conflict.ConflictSetElement
An element present in the conflict set.
Field Summary | |
private java.lang.Object[] |
objects
The objects bound to the declared variables. |
private int |
ruleIndex
The index of the fireable rule. |
private long |
timestamp
A timestamp of this element. |
Constructor Summary | |
ConflictSetElement(int ruleIndex,
java.lang.Object[] objects)
Class constructor. |
Method Summary | |
private static boolean |
compareArrays(java.lang.Object[] array1,
java.lang.Object[] array2)
Auxiliar method used to compare two arrays of objects. |
boolean |
equals(java.lang.Object obj)
Compares this object with the given one. |
java.lang.Object[] |
getObjects()
Returns the objects bound to the declared variables. |
int |
getRuleIndex()
Returns the index of the fireable rule. |
long |
getTimestamp()
Returns the timestamp of this element. |
int |
hashCode()
Returns a hash code for this object. |
boolean |
isDeclared(java.lang.Object obj)
Checks whether a given object is one of the objects bound to the declared variables in this element. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int ruleIndex
private java.lang.Object[] objects
private long timestamp
Constructor Detail |
public ConflictSetElement(int ruleIndex, java.lang.Object[] objects)
ruleIndex
- the index of the fireable rule.objects
- the objects bound to the declared variables.Method Detail |
private static boolean compareArrays(java.lang.Object[] array1, java.lang.Object[] array2)
array1
- the first array to be compared.array2
- the second array to be compared.true
if all elements of the arrays are equals;
false
otherwise.public boolean equals(java.lang.Object obj)
obj
- the object to be comparedtrue
if the two objects represent the same
conflict set element; false
otherwise.public java.lang.Object[] getObjects()
public int getRuleIndex()
public long getTimestamp()
public int hashCode()
public boolean isDeclared(java.lang.Object obj)
obj
- the object to be checked.true
if the given object bound to one of the
declared variables in this element; false
otherwise.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |