|
||||||||||
| PREV CLASS NEXT CLASS | NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DevelopmentKnowledgeBase interface extends the KnowledgeBase interface with the ability to load text files containing defrelation and deftemplate constructs and to create binary file from them.
| Field Summary | |
static java.lang.String |
WATCH_ACTIVATIONS
Constant for watching activations being created and removed. |
static java.lang.String |
WATCH_CAUSES
Constant for watching the causes for a goal. |
static java.lang.String |
WATCH_COMPILATIONS
Constant for watching compilations, that is constructs being parsed, undef'd or excised. |
static java.lang.String |
WATCH_DEPENDENCIES
Constant for watching the dependencies being added to and removed from facts |
static java.lang.String |
WATCH_FACTS
Constant for watching facts being asserted and retracted. |
static java.lang.String |
WATCH_GOALS
Constant for watching goals being asserted and retracted. |
static java.lang.String |
WATCH_JAVA
Constant for watching the CRget, CRinvoke, and CRset. |
static java.lang.String |
WATCH_JOINS
Constant for watching joins being matched and unmatched. |
static java.lang.String |
WATCH_PATTERNS
Constant for watching patterns, that is goals and facts instantiating patterns |
static java.lang.String |
WATCH_RULES
Constant for watching the rules being executed. |
| Method Summary | |
boolean |
getWatch(java.lang.String item)
Get an item's watch state |
void |
saveAsBinaryFile(Agenda agenda,
java.lang.String filename,
boolean saveDeffacts)
Save the rules in the specified agenda to a file in binary form for fast, secure loading. |
void |
saveAsBinaryFile(Ruleset ruleset,
java.lang.String filename,
boolean saveDeffacts)
Save the rules in the specified ruleset to a file in binary form for fast, secure loading. |
void |
setWatch(java.lang.String item,
boolean on)
Set an item to be traced |
void |
setWatchAll(boolean on)
Set all items to be traced |
| Methods inherited from interface com.haley.haleyrules.KnowledgeBase |
clear, defineFunction, deleteKnowledgeBase, deleteWorkingMemory, echoing, findRelation, findRuleset, findTemplate, flushEcho, getName, getNumberOfArguments, getObject, getRulesets, loadBatchFile, loadBinary, loadBinaryFile, loadConfigurationFile, loadConfigurationURL, loadFromDocumentElement, loadFromStream, loadHRMLfile, loadHRMLfromReader, loadText, loadTextFile, newWorkingMemory, newWorkingMemory, setClassLoader, setErrorListener, setExecutionListener, setName, setObject, startEcho, startEcho, startEcho, stopEcho |
| Field Detail |
public static final java.lang.String WATCH_COMPILATIONS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_FACTS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_GOALS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_PATTERNS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_JOINS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_ACTIVATIONS
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_DEPENDENCIES
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_CAUSES
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_RULES
getWatch(String),
setWatch(String,boolean),
Constant Field Valuespublic static final java.lang.String WATCH_JAVA
getWatch(String),
setWatch(String,boolean),
Constant Field Values| Method Detail |
public void saveAsBinaryFile(Ruleset ruleset,
java.lang.String filename,
boolean saveDeffacts)
throws EclipseException
ruleset - the ruleset to savefilename - the filename to save the binary tosaveDeffacts - true, if deffacts should also be saved
EclipseException - if this method is not supported
public void saveAsBinaryFile(Agenda agenda,
java.lang.String filename,
boolean saveDeffacts)
throws EclipseException
agenda - the agenda to savefilename - the filename to save the binary tosaveDeffacts - true, if deffacts should also be saved
EclipseException - if this method is not supported
public boolean getWatch(java.lang.String item)
throws EclipseException
item - the item to be queried
EclipseException, - if unsuccessful
EclipseException
public void setWatch(java.lang.String item,
boolean on)
throws EclipseException
item - the item to be tracedon - flag to turn on or off
EclipseException, - if unsuccessful
EclipseException
public void setWatchAll(boolean on)
throws EclipseException
on - flag to turn on or off
EclipseException, - if unsuccessful
EclipseException
|
||||||||||
| PREV CLASS NEXT CLASS | NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||