|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jess.Node jess.HasLHS jess.Defquery
public class Defquery
A Defquery is a way of requesting specific information in working memory from procedural code. These are usually constructed by the parser when it sees a "defquery" construct.
(C) 2013 Sandia Corporation
Field Summary | |
---|---|
static java.lang.String |
QUERY_TRIGGER
String prepended to query names to form backwards chaining goals |
Fields inherited from class jess.Node |
---|
TYPE_ADAPTER, TYPE_NODE1, TYPE_NODE2, TYPE_NODENOT2, TYPE_NONE, TYPE_TERMINAL, TYPE_TEST |
Constructor Summary | |
---|---|
Defquery(java.lang.String name,
java.lang.String docstring,
Rete engine)
|
Method Summary | |
---|---|
java.lang.Object |
accept(Visitor jv)
A proper accept() implementation should call one of the visitXXX() methods on the Visitor. |
void |
addCE(jess.ConditionalElementX ce,
Rete engine)
Add a conditional element to this construct |
void |
addQueryVariable(Variable v)
|
void |
callNodeLeft(int tag,
Token token,
Context context)
Recieve satisfied queries |
java.lang.String |
getConstructType()
Return the type of construct this object is; for example, "defrule", "deftemplate", etc. |
int |
getMaxBackgroundRules()
Return the maximum number of rules that will fire during this query. |
int |
getNVariables()
|
java.lang.String |
getQueryTriggerName()
|
Variable |
getQueryVariable(int i)
|
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, getBindingNames, getConditionalElements, getDisplayName, getDocstring, getGroupSize, getModule, getName, getNext, getNodeCount, getNodeIndexHash, getNodes, getNodeType, getPatternCount, listNodes, setLHS, setNodeIndexHash |
Methods inherited from class jess.Node |
---|
addJessListener, decrementUseCount, getSuccessors, getUseCount, incrementUseCount, removeJessListener, successors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QUERY_TRIGGER
Constructor Detail |
---|
public Defquery(java.lang.String name, java.lang.String docstring, Rete engine) throws JessException
JessException
Method Detail |
---|
public int getMaxBackgroundRules()
public void setMaxBackgroundRules(int maxBackgroundRules)
maxBackgroundRules
- The new value for this propertygetMaxBackgroundRules()
public void callNodeLeft(int tag, Token token, Context context) throws JessException
JessException
public java.lang.String getQueryTriggerName()
public void addQueryVariable(Variable v)
public int getNVariables()
public Variable getQueryVariable(int i)
public void addCE(jess.ConditionalElementX ce, Rete engine) throws JessException
HasLHS
addCE
in class HasLHS
JessException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(Visitor jv)
Visitable
accept
in interface Visitable
accept
in class HasLHS
jv
- a visitor to invoke
public final java.lang.String getConstructType()
Named
getConstructType
in interface Named
|
© 2013 Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |