jess
Class Defquery

java.lang.Object
  extended byjess.Node
      extended byjess.HasLHS
          extended byjess.Defquery
All Implemented Interfaces:
Modular, NodeSink, java.io.Serializable, Visitable

public class Defquery
extends HasLHS
implements java.io.Serializable

Class used to represent Defqueries. These are constructed by the parser.

(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories

Author:
Ernest J. Friedman-Hill
See Also:
Serialized Form

Field Summary
static java.lang.String QUERY_TRIGGER
          String prepended to query names to form backwards chaining goals
 
Fields inherited from class jess.Node
LEFT, m_usecount, RIGHT
 
Method Summary
 java.lang.Object accept(Visitor jv)
           
 void callNodeLeft(Token token, Context context)
          Recieve satisfied queries
 int getMaxBackgroundRules()
          Return the maximum number of rules that will fire during this query.
 java.lang.String getQueryTriggerName()
           
 void setMaxBackgroundRules(int maxBackgroundRules)
          Set the maximum number of rules that will fire during this query.
 java.lang.String toString()
           
 
Methods inherited from class jess.HasLHS
addNode, getConditionalElements, getDisplayName, getDocstring, getGroupSize, getModule, getName, getNodeIndexHash, getPatternCount, listNodes, setNodeIndexHash
 
Methods inherited from class jess.Node
addJessListener, getSuccessors, removeJessListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_TRIGGER

public static final java.lang.String QUERY_TRIGGER
String prepended to query names to form backwards chaining goals

See Also:
Constant Field Values
Method Detail

getMaxBackgroundRules

public int getMaxBackgroundRules()
Return the maximum number of rules that will fire during this query. Queries call Rete.run() when they are executed to allow backward chaining to occur. No more than this number of rules will be allowed to fire.

Returns:
As described

setMaxBackgroundRules

public void setMaxBackgroundRules(int maxBackgroundRules)
Set the maximum number of rules that will fire during this query.

Parameters:
maxBackgroundRules - The new value for this property
See Also:
getMaxBackgroundRules()

callNodeLeft

public void callNodeLeft(Token token,
                         Context context)
                  throws JessException
Recieve satisfied queries

Throws:
JessException

getQueryTriggerName

public java.lang.String getQueryTriggerName()

toString

public java.lang.String toString()

accept

public java.lang.Object accept(Visitor jv)
Specified by:
accept in interface Visitable
Specified by:
accept in class HasLHS

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