|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.Deffacts
Class used to represent deffacts. Note that you can create Deffacts objects and add them to a Rete engine using Rete.addDeffacts().
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
Constructor Summary | |
Deffacts(java.lang.String name,
java.lang.String docstring,
Rete engine)
Create a deffacts |
Method Summary | |
java.lang.Object |
accept(Visitor v)
|
void |
addFact(Fact fact)
Add a fact to this deffacts |
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 stringMethod Detail |
public final java.lang.String getName()
public final java.lang.String getModule()
public final java.lang.String getDocstring()
public void addFact(Fact fact)
fact
- The fact to addpublic int getNFacts()
public Fact getFact(int idx)
idx
- the o-based index of the desired factpublic void reset(Rete engine) throws JessException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(Visitor v)
accept
in interface Visitable
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |