|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.expertsystem.conflict.AbstractConflictSet
org.jscience.computing.ai.expertsystem.conflict.PriorityConflictSet
public class PriorityConflictSet
A conflict set whose conflict resolution policy is one that rules defined first in the rule base have a higher priority over the ones defined below it.
| Field Summary |
|---|
| Fields inherited from class org.jscience.computing.ai.expertsystem.conflict.AbstractConflictSet |
|---|
debug, listeners |
| Constructor Summary | |
|---|---|
PriorityConflictSet()
Class constructor. |
|
| Method Summary | |
|---|---|
void |
flush()
Removes all rules from this conflict set, as well as cleaning any history that might have been stored. |
void |
insertElement(ConflictSetElement element)
Inserts a rule instantiation. |
boolean |
isEmpty()
Checks whether this set has any elements. |
ConflictSetElement |
nextElement()
Returns the next rule to be fired. |
void |
removeElementsWith(java.lang.Object obj)
Remove all elements from this set that uses the given object in its instantiations. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.jscience.computing.ai.expertsystem.conflict.AbstractConflictSet |
|---|
addInternalConflictSetListener, elementAdded, elementRemoved, removeElementsWith_1D, removeElementsWith_2D, removeInternalConflictSetListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PriorityConflictSet()
| Method Detail |
|---|
public void flush()
public void insertElement(ConflictSetElement element)
element - a conflict set element that holds the rule index as well
as the objects bound to the rule declarations.public boolean isEmpty()
false if there is at least one fireable rule in
this set; true otherwise.
public ConflictSetElement nextElement()
throws NoMoreElementsException
NoMoreElementsException - if there aren't any more elements in
this conflict set.public void removeElementsWith(java.lang.Object obj)
obj - the given objectpublic 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 | ||||||||