jess.factory
Class FactoryImpl

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

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) 2013 Sandia Corporation

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

Constructor Summary
FactoryImpl()
           
 
Method Summary
 Token newToken(Fact firstFact)
           
 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)
               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

2013 Sandia Corporation