org.genepi.rete
Class ReteMatcher

java.lang.Object
  extended by org.genepi.rete.ReteMatcher
All Implemented Interfaces:
PatternMatcher

public class ReteMatcher
extends java.lang.Object
implements PatternMatcher


Constructor Summary
ReteMatcher(KsFarm farm)
          Build a new rete pattern matcher.
 
Method Summary
 void addObserver(org.framboise_22.rete.util.Observer o)
           
 void compile()
          do build the network.
 void delObject(java.lang.String origin, java.lang.Object data)
          Push remove on the top of the network.
 void dotFile()
           
 void muteObject(java.lang.String origin, java.lang.Object data)
          Push mute on the top of the network.
 void newObject(java.lang.String origin, java.lang.Object data)
          Push add on the top of the network.
 void removeObserver(org.framboise_22.rete.util.Observer o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteMatcher

public ReteMatcher(KsFarm farm)
Build a new rete pattern matcher.

Parameters:
farm - the list of ks.
Method Detail

addObserver

public void addObserver(org.framboise_22.rete.util.Observer o)
Specified by:
addObserver in interface PatternMatcher

removeObserver

public void removeObserver(org.framboise_22.rete.util.Observer o)
Specified by:
removeObserver in interface PatternMatcher

newObject

public void newObject(java.lang.String origin,
                      java.lang.Object data)
               throws java.lang.RuntimeException
Push add on the top of the network.

Specified by:
newObject in interface PatternMatcher
data - l'objet en question.
Throws:
java.lang.RuntimeException

delObject

public void delObject(java.lang.String origin,
                      java.lang.Object data)
               throws java.lang.RuntimeException
Push remove on the top of the network.

Specified by:
delObject in interface PatternMatcher
data - l'objet en question.
Throws:
java.lang.RuntimeException

muteObject

public void muteObject(java.lang.String origin,
                       java.lang.Object data)
                throws java.lang.RuntimeException
Push mute on the top of the network.

Specified by:
muteObject in interface PatternMatcher
Throws:
java.lang.RuntimeException

compile

public void compile()
do build the network.

Specified by:
compile in interface PatternMatcher
Parameters:
types - liste des type pris en charge
ksList - liste de ks qui ecoutent les tuples

dotFile

public void dotFile()