jeops
Class RuleEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--jeops.RuleEvent

public class RuleEvent
extends java.util.EventObject

A semantic event that indicates that a rule was fired.

Version:
0.02 22.09.2000 The mapping from declarations to values has been removed - it can be obtained from the knowledge base.
Author:
Carlos Figueira Filho (csff@cin.ufpe.br)
See Also:
Serialized Form

Field Summary
private  int ruleIndex
          The index of the fired rule.
 
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, registerNatives, wait, wait, wait
 

Field Detail

ruleIndex

private int ruleIndex
The index of the fired rule.
Constructor Detail

RuleEvent

public RuleEvent(AbstractKnowledgeBase source,
                 int ruleIndex)
Class constructor.
Parameters:
source - the knowledge base that fired the rule.
ruleIndex - the index of the fired rule.
Method Detail

getKnowledgeBase

public AbstractKnowledgeBase getKnowledgeBase()
Returns the knowledge base that fired the rule.
Returns:
the knowledge base that fired the rule.

getRuleIndex

public int getRuleIndex()
Returns the index of the fired rule.
Returns:
the index of the fired rule.