|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjess.Defmodule
public class Defmodule
A named module containing rules, templates, and other constructs.
(C) 2013 Sandia Corporation
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 module. |
boolean |
getAutoFocus()
Return the auto-focus property for this module. |
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<Deftemplate> |
listDeftemplates()
Return an iterator over all the deftemplates defined in this module. |
void |
removeDeftemplate(Deftemplate template)
|
void |
setAutoFocus(boolean val)
Turns on auto-focus for 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 Named
public java.lang.String getDocstring()
getDocstring
in interface Named
public java.util.Iterator<Deftemplate> 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 Named
public java.lang.Object accept(Visitor v)
Visitable
accept
in interface Visitable
v
- a visitor to invoke
public void removeDeftemplate(Deftemplate template)
public void setAutoFocus(boolean val)
val
- true to turn on module autofocusDefrule.setAutoFocus(boolean)
public boolean getAutoFocus()
setAutoFocus(boolean)
|
© 2013 Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |