com.haley.haleyrules
Interface DevelopmentKnowledgeBase

All Superinterfaces:
KnowledgeBase

public interface DevelopmentKnowledgeBase
extends KnowledgeBase

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.

Author:
The Haley Enterprise Copyright © 1998-2004, all rights reserved. Questions, comments or to report a problem contact support@haley.com

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

WATCH_COMPILATIONS

public static final java.lang.String WATCH_COMPILATIONS
Constant for watching compilations, that is constructs being parsed, undef'd or excised.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_FACTS

public static final java.lang.String WATCH_FACTS
Constant for watching facts being asserted and retracted.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_GOALS

public static final java.lang.String WATCH_GOALS
Constant for watching goals being asserted and retracted.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_PATTERNS

public static final java.lang.String WATCH_PATTERNS
Constant for watching patterns, that is goals and facts instantiating patterns

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_JOINS

public static final java.lang.String WATCH_JOINS
Constant for watching joins being matched and unmatched.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_ACTIVATIONS

public static final java.lang.String WATCH_ACTIVATIONS
Constant for watching activations being created and removed.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_DEPENDENCIES

public static final java.lang.String WATCH_DEPENDENCIES
Constant for watching the dependencies being added to and removed from facts

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_CAUSES

public static final java.lang.String WATCH_CAUSES
Constant for watching the causes for a goal.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_RULES

public static final java.lang.String WATCH_RULES
Constant for watching the rules being executed.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values

WATCH_JAVA

public static final java.lang.String WATCH_JAVA
Constant for watching the CRget, CRinvoke, and CRset.

See Also:
getWatch(String), setWatch(String,boolean), Constant Field Values
Method Detail

saveAsBinaryFile

public void saveAsBinaryFile(Ruleset ruleset,
                             java.lang.String filename,
                             boolean saveDeffacts)
                      throws EclipseException
Save the rules in the specified ruleset to a file in binary form for fast, secure loading. Allows applications to be delivered using runtime versions of Eclipse

Parameters:
ruleset - the ruleset to save
filename - the filename to save the binary to
saveDeffacts - true, if deffacts should also be saved
Throws:
EclipseException - if this method is not supported

saveAsBinaryFile

public void saveAsBinaryFile(Agenda agenda,
                             java.lang.String filename,
                             boolean saveDeffacts)
                      throws EclipseException
Save the rules in the specified agenda to a file in binary form for fast, secure loading. Allows applications to be delivered using runtime versions of Eclipse

Parameters:
agenda - the agenda to save
filename - the filename to save the binary to
saveDeffacts - true, if deffacts should also be saved
Throws:
EclipseException - if this method is not supported

getWatch

public boolean getWatch(java.lang.String item)
                 throws EclipseException
Get an item's watch state

Parameters:
item - the item to be queried
Returns:
true iff the specified item is being watched
Throws:
EclipseException, - if unsuccessful
EclipseException

setWatch

public void setWatch(java.lang.String item,
                     boolean on)
              throws EclipseException
Set an item to be traced

Parameters:
item - the item to be traced
on - flag to turn on or off
Throws:
EclipseException, - if unsuccessful
EclipseException

setWatchAll

public void setWatchAll(boolean on)
                 throws EclipseException
Set all items to be traced

Parameters:
on - flag to turn on or off
Throws:
EclipseException, - if unsuccessful
EclipseException


Copyright © 1998-2006 Haley Systems, Inc. All Rights Reserved.