|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.expertsystem.conflict.ConflictSetElement
public class ConflictSetElement
An element present in the conflict set.
| Constructor Summary | |
|---|---|
ConflictSetElement(int ruleIndex,
java.lang.Object[] objects)
Class constructor. |
|
| Method Summary | |
|---|---|
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 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to be compared
true 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()
hashCode in class java.lang.Objectpublic 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()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||