org.jscience.computing.ai.expertsystem
Class ConflictSetEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jscience.computing.ai.expertsystem.ConflictSetEvent
All Implemented Interfaces:
java.io.Serializable

public class ConflictSetEvent
extends java.util.EventObject

A semantic event that indicates that an element was either added to or removed from a conflict set.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConflictSetEvent(AbstractKnowledgeBase source, ConflictSetElement element)
          Class constructor.
 
Method Summary
 ConflictSetElement getElement()
          Returns the element that was added/removed.
 AbstractKnowledgeBase getKnowledgeBase()
          Returns the knowledge base that added or removed the element.
 
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

ConflictSetEvent

public ConflictSetEvent(AbstractKnowledgeBase source,
                        ConflictSetElement element)
Class constructor.

Parameters:
source - the knowledge base that added or removed the element.
element - the element that was added or removed.
Method Detail

getElement

public ConflictSetElement getElement()
Returns the element that was added/removed.

Returns:
the element that was added/removed.

getKnowledgeBase

public AbstractKnowledgeBase getKnowledgeBase()
Returns the knowledge base that added or removed the element.

Returns:
the knowledge base that added or removed the element.