|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrTool
The IlrTool
interface.
Once connected to an IlrContext
, these
methods are called to provide notifications of
IlrContext
changes.
IlrLocalTracerToolFactory
,
ilog.rules.debug.IlrBuilderToolFactory
Method Summary | |
---|---|
void |
notifyActivateRule(IlrRule rule)
Deprecated. |
void |
notifyAddInstance(IlrRuleInstance instance,
IlrRuleInstance previous)
Provides notification that a rule instance has been inserted into the agenda. |
void |
notifyAddRule(IlrRule rule)
Provides notification that an IlrRule has
been added in the ruleset. |
void |
notifyAssertLogical(Object object)
Provides notification that a logical object has been asserted in working memory. |
void |
notifyAssertObject(Object object)
Provides notification that an object has been asserted in working memory. |
void |
notifyBeginInstance(IlrRuleInstance instance)
Provides notification that a rule instance has been selected to fire and that the first action is about to be executed. |
void |
notifyBeginSequentialInstance(IlrRule rule,
Object[] tuple,
int priority)
Provides notification that a sequential instance has been added and selected to fire and that the first action is about to be executed. |
void |
notifyBeginTask(IlrTask task)
Provides notification that a task is about to be executed. |
void |
notifyConnect()
Provides notification that a connection has occurred. |
void |
notifyDeactivateRule(IlrRule rule)
Deprecated. |
void |
notifyDefineFunction(IlrFunction function)
Provides notification that an IlrFunction has been defined in
the ruleset. |
void |
notifyDisconnect()
Provides notification that a disconnection has occurred. |
void |
notifyEndInstance(IlrRuleInstance instance)
Provides notification that a rule instance has finished executing the action part. |
void |
notifyEndRuleFlow(IlrTask task)
Provides notification that a flow is about to finish its execution. |
void |
notifyEndSequentialInstance(IlrRule rule,
Object[] tuple,
int priority)
Provides notification that a rule instance has finished executing the action part. |
void |
notifyEndTask(IlrTask task)
Provides notification that a task is about to finish its execution. |
void |
notifyRemoveAllInstances()
Provides notification that all rule instances have been removed from the agenda without having been fired. |
void |
notifyRemoveInstance(IlrRuleInstance instance)
Provides notification that a rule instance has been removed from the agenda without having been fired. |
void |
notifyRemoveRule(IlrRule rule)
Provides notification that an IlrRule has
been removed from the ruleset. |
void |
notifyReset()
Provides notification that the context has been reset. |
void |
notifyRetractAll()
Provides notification that all objects have been retracted from working memory. |
void |
notifyRetractObject(Object object)
Provides notification that an object has been retracted from working memory. |
void |
notifySetInitialRule(Vector initialStatements)
Deprecated. |
void |
notifyStartRuleFlow(IlrTask task)
Provides notification that a flow is about to be executed. |
void |
notifyUpdateObject(Object object)
Provides notification that an object has been updated in working memory. |
Method Detail |
---|
void notifyConnect()
Provides notification that a connection has occurred.
void notifyDisconnect()
Provides notification that a disconnection has occurred.
void notifyAddRule(IlrRule rule)
Provides notification that an IlrRule
has
been added in the ruleset.
rule
- The rule.void notifyRemoveRule(IlrRule rule)
Provides notification that an IlrRule
has
been removed from the ruleset.
rule
- The rule.void notifySetInitialRule(Vector initialStatements)
Provides notification that an Initial Action has been set for the ruleset.
initialStatements
- The vector containing all IlrStatement
s.void notifyDefineFunction(IlrFunction function)
Provides notification that an IlrFunction
has been defined in
the ruleset.
function
- The function.void notifyActivateRule(IlrRule rule)
Provides notification that an IlrRule
has
been activated in the context.
rule
- The rule.void notifyDeactivateRule(IlrRule rule)
Provides notification that an IlrRule
has been deactivated
in the context.
rule
- The rule.void notifyAssertObject(Object object)
Provides notification that an object has been asserted in working memory.
object
- The object.void notifyAssertLogical(Object object)
Provides notification that a logical object has been asserted in working memory.
object
- The object.void notifyRetractObject(Object object)
Provides notification that an object has been retracted from working memory.
object
- The object.void notifyUpdateObject(Object object)
Provides notification that an object has been updated in working memory.
object
- The object.void notifyRetractAll()
Provides notification that all objects have been retracted from working memory.
void notifyReset()
Provides notification that the context has been reset.
void notifyAddInstance(IlrRuleInstance instance, IlrRuleInstance previous)
Provides notification that a rule instance has been inserted into the agenda.
instance
- The rule instance.previous
- The rule instance preceding the current
instance, or null
notifyRemoveInstance
void notifyRemoveInstance(IlrRuleInstance instance)
Provides notification that a rule instance has been removed from the
agenda without having been fired.
- Parameters:
instance
- The removed rule instance.
notifyRemoveAllInstances
void notifyRemoveAllInstances()
Provides notification that all rule instances have been removed
from the agenda without having been fired.
notifyBeginInstance
void notifyBeginInstance(IlrRuleInstance instance)
Provides notification that a rule instance has been selected to fire
and that the first action is about to be executed.
- Parameters:
instance
- The rule instance.
notifyEndInstance
void notifyEndInstance(IlrRuleInstance instance)
Provides notification that a rule instance has finished executing
the action part.
- Parameters:
instance
- The rule instance.
notifyBeginSequentialInstance
void notifyBeginSequentialInstance(IlrRule rule,
Object[] tuple,
int priority)
- Provides notification that a sequential instance has been added
and selected to fire
and that the first action is about to be executed.
Note that for sequential and fastpath algorithms debugging
must be enabled thanks to the property:
ilog.rules.engine.sequential.debug
notifyEndSequentialInstance
void notifyEndSequentialInstance(IlrRule rule,
Object[] tuple,
int priority)
- Provides notification that a rule instance has finished executing
the action part.
Note that for sequential and fastpath algorithms debugging
must be enabled thanks to the property:
ilog.rules.engine.sequential.debug
notifyBeginTask
void notifyBeginTask(IlrTask task)
Provides notification that a task is about to be executed.
- Parameters:
task
- The task.
notifyEndTask
void notifyEndTask(IlrTask task)
Provides notification that a task is about to finish its
execution.
- Parameters:
task
- The task.
notifyStartRuleFlow
void notifyStartRuleFlow(IlrTask task)
Provides notification that a flow is about to be executed. A flow
can be either the execution of a flow task, which invokes the
execution of other tasks, or a single rule task or
function task.
- Parameters:
task
- The task that models the flow.
notifyEndRuleFlow
void notifyEndRuleFlow(IlrTask task)
Provides notification that a flow is about to finish its execution.
A flow can be either the execution of a flow task, which invokes the
execution of other tasks, or a single rule task or
function task.
- Parameters:
task
- The task that models the flow.
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
Rule Execution Server API
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
© Copyright IBM Corp. 1987, 2013