jess.factory
Class FactoryImpl

java.lang.Object
  extended byjess.factory.FactoryImpl
All Implemented Interfaces:
Factory, java.io.Serializable

public class FactoryImpl
extends java.lang.Object
implements Factory, java.io.Serializable

The default token factory implementation. This class just forwards each method to the equivalent Token constructor.

(C) 2005 Sandia National Laboratories

See Also:
Rete.setFactory(Factory), Serialized Form

Constructor Summary
FactoryImpl()
           
 
Method Summary
 Token newToken(Fact firstFact, int tag)
           
 Token newToken(Token token)
           
 Token newToken(Token token, Fact newFact)
           
 Token newToken(Token lt, Token rt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryImpl

public FactoryImpl()
Method Detail

newToken

public Token newToken(Fact firstFact,
                      int tag)
               throws JessException
Specified by:
newToken in interface Factory
Throws:
JessException

newToken

public Token newToken(Token token,
                      Fact newFact)
               throws JessException
Specified by:
newToken in interface Factory
Throws:
JessException

newToken

public Token newToken(Token lt,
                      Token rt)
               throws JessException
Specified by:
newToken in interface Factory
Throws:
JessException

newToken

public Token newToken(Token token)
               throws JessException
Specified by:
newToken in interface Factory
Throws:
JessException

© 2006 Sandia Corporation