|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Deffacts
A Deffacts is a list of facts that are asserted when the Rete engine is reset.
(C) 2005 Sandia National Laboratories
| Constructor Summary | |
Deffacts(java.lang.String name,
java.lang.String docstring,
Rete engine)
Create a deffacts |
|
| Method Summary | |
java.lang.Object |
accept(Visitor v)
A proper accept() implementation should call one of the visitXXX() methods on the Visitor. |
void |
addFact(Fact fact)
Add a fact to this deffacts |
java.lang.String |
getConstructType()
Return the type of construct this object is; for example, "defrule", "deftemplate", etc. |
java.lang.String |
getDocstring()
Fetch the documentation comment, if any, for this deffacts |
Fact |
getFact(int idx)
Fetch a single Fact from this deffacts |
java.lang.String |
getModule()
Fetch the module of this deffacts |
java.lang.String |
getName()
Fetch the name of this deffacts |
int |
getNFacts()
Fetch the number of facts in this deffacts |
void |
reset(Rete engine)
Assert my facts into engine. |
java.lang.String |
toString()
Describe myself |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Deffacts(java.lang.String name,
java.lang.String docstring,
Rete engine)
throws JessException
name - The name of the deffactsdocstring - A documentation string| Method Detail |
public final java.lang.String getName()
getName in interface Namedpublic final java.lang.String getModule()
public final java.lang.String getDocstring()
getDocstring in interface Namedpublic void addFact(Fact fact)
fact - The fact to addpublic int getNFacts()
public Fact getFact(int idx)
idx - the o-based index of the desired fact
public void reset(Rete engine)
throws JessException
JessExceptionpublic java.lang.String toString()
public java.lang.Object accept(Visitor v)
Visitable
accept in interface Visitablev - a visitor to invoke
public final java.lang.String getConstructType()
Named
getConstructType in interface Named
|
© 2006 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||