jess
Class Context

java.lang.Object
  |
  +--jess.Context
All Implemented Interfaces:
java.io.Serializable

public class Context
extends java.lang.Object
implements java.io.Serializable

An execution context for Funcalls.

(C) 1998 E.J. Friedman-Hill and the Sandia Corporation

See Also:
Serialized Form

Method Summary
 Rete getEngine()
           
 Fact getFact()
          If this context represents a join network node from a rule LHS, this will return the right input of the node.
 jess.LogicalNode getLogicalSupportNode()
           
 Token getToken()
          If this context represents a join network node from a rule LHS, this will return the left input of the node.
 Value getVariable(java.lang.String name)
          Get the value of a variable
 void setVariable(java.lang.String name, Value value)
          Set a (possibly new) variable to some type and value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getToken

public final Token getToken()
If this context represents a join network node from a rule LHS, this will return the left input of the node.
Returns:
The Token

getFact

public final Fact getFact()
If this context represents a join network node from a rule LHS, this will return the right input of the node.
Returns:
The ValueVector form of a fact

getLogicalSupportNode

public final jess.LogicalNode getLogicalSupportNode()

getEngine

public final Rete getEngine()
Returns:
 

getVariable

public Value getVariable(java.lang.String name)
                  throws JessException
Get the value of a variable
Parameters:
name - The name of the variable with no leading '?' or '$' characters
Throws:
JessException - If the variable is undefined

setVariable

public void setVariable(java.lang.String name,
                        Value value)
                 throws JessException
Set a (possibly new) variable to some type and value
Parameters:
name - Name of the variable
value - The value of the variable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 1997 E.J. Friedman-Hill and Sandia Corporation