| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Defmodule
A named module containing rules, templates, and other constructs.
 (C) 2006 Sandia National Laboratories
| Field Summary | |
| static java.lang.String | MAIN | 
| Constructor Summary | |
| Defmodule()Construct a module named MAIN. | |
| Defmodule(java.lang.String name,
          java.lang.String comment)Construct a new module. | |
| Method Summary | |
|  java.lang.Object | accept(Visitor v)A proper accept() implementation should call one of the visitXXX() methods on the Visitor. | 
|  Deftemplate | addDeftemplate(Deftemplate dt,
               Rete engine)Add a new deftemplate to this moduole. | 
|  java.lang.String | getConstructType()Return the type of this construct. | 
|  Deftemplate | getDeftemplate(java.lang.String name)Return a deftemplate defined in this module, by name. | 
|  java.lang.String | getDocstring()Returns the docmentation string for this module. | 
|  java.lang.String | getName()Returns the name of this module | 
|  java.util.Iterator | listDeftemplates()Return an iterator over all the deftemplates defined in this module. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String MAIN
| Constructor Detail | 
public Defmodule()
public Defmodule(java.lang.String name,
                 java.lang.String comment)
name - the name of the new modulecomment - documentation for the module, or null.| Method Detail | 
public java.lang.String getName()
getName in interface Namedpublic java.lang.String getDocstring()
getDocstring in interface Namedpublic java.util.Iterator listDeftemplates()
public Deftemplate getDeftemplate(java.lang.String name)
name - the name of the desired deftemplate
public Deftemplate addDeftemplate(Deftemplate dt,
                                  Rete engine)
                           throws JessException
dt - a new deftemplateengine - the Rete engine this module belongs to
JessException - if anything goes wrong.public final java.lang.String getConstructType()
getConstructType in interface Namedpublic java.lang.Object accept(Visitor v)
Visitable
accept in interface Visitablev - a visitor to invoke
| 
 | © 2007 Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||