|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.jscience.computing.ai.expertsystem.RuleEvent
public class RuleEvent
A semantic event that indicates that a rule was fired.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
RuleEvent(AbstractKnowledgeBase source,
int ruleIndex)
Class constructor. |
|
| Method Summary | |
|---|---|
AbstractKnowledgeBase |
getKnowledgeBase()
Returns the knowledge base that fired the rule. |
int |
getRuleIndex()
Returns the index of the fired rule. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RuleEvent(AbstractKnowledgeBase source,
int ruleIndex)
source - the knowledge base that fired the rule.ruleIndex - the index of the fired rule.| Method Detail |
|---|
public AbstractKnowledgeBase getKnowledgeBase()
public int getRuleIndex()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||