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.01 02.03.2000
- Author:
- Carlos Figueira Filho (csff@di.ufpe.br)
- See Also:
- Serialized Form
Method Summary |
AbstractKnowledgeBase |
getKnowledgeBase()
Returns the knowledge base that fired the rule. |
int |
getRuleIndex()
Returns the index of the fired rule. |
java.util.Hashtable |
getValues()
Returns a table that maps the name of each declared object in the
rule to the value that made it fireable. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RuleEvent
public RuleEvent(AbstractKnowledgeBase source,
int ruleIndex,
java.util.Hashtable values)
- Class constructor.
- Parameters:
source
- the knowledge base that fired the rule.ruleIndex
- the index of the fired rule.values
- a table that maps the name of each declared object
in the rule to the value that made it fireable.
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.
getValues
public java.util.Hashtable getValues()
- Returns a table that maps the name of each declared object in the
rule to the value that made it fireable.
- Returns:
- a table that maps the name of each declared object in the
rule to the value that made it fireable.