Rule Execution Server API

ilog.rules.engine
Class IlrToolAdapter

java.lang.Object
  extended by ilog.rules.engine.IlrToolAdapter
All Implemented Interfaces:
IlrTool

public class IlrToolAdapter
extends Object
implements IlrTool

The IlrToolAdapter class.

This class is an adapter for the IlrTool interface.

See Also:
IlrTool

Constructor Summary
IlrToolAdapter()
           
 
Method Summary
 void notifyActivateRule(IlrRule rule)
          Provides notification that an IlrRule has been activated in the context.
 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)
          Provides notification that an IlrRule has been deactivated in the context.
 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)
          Provides notification that an Initial Action has been set for the ruleset.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrToolAdapter

public IlrToolAdapter()
Method Detail

notifyConnect

public void notifyConnect()

Provides notification that a connection has occurred.

Specified by:
notifyConnect in interface IlrTool

notifyDisconnect

public void notifyDisconnect()

Provides notification that a disconnection has occurred.

Specified by:
notifyDisconnect in interface IlrTool

notifyAddRule

public void notifyAddRule(IlrRule rule)

Provides notification that an IlrRule has been added in the ruleset.

Specified by:
notifyAddRule in interface IlrTool
Parameters:
rule - The rule.

notifyRemoveRule

public void notifyRemoveRule(IlrRule rule)

Provides notification that an IlrRule has been removed from the ruleset.

Specified by:
notifyRemoveRule in interface IlrTool
Parameters:
rule - The rule.

notifySetInitialRule

public void notifySetInitialRule(Vector initialStatements)

Provides notification that an Initial Action has been set for the ruleset.

Specified by:
notifySetInitialRule in interface IlrTool
Parameters:
initialStatements - The vector containing all IlrStatements.

notifyDefineFunction

public void notifyDefineFunction(IlrFunction function)

Provides notification that an IlrFunction has been defined in the ruleset.

Specified by:
notifyDefineFunction in interface IlrTool
Parameters:
function - The function.

notifyActivateRule

public void notifyActivateRule(IlrRule rule)

Provides notification that an IlrRule has been activated in the context.

Specified by:
notifyActivateRule in interface IlrTool
Parameters:
rule - The rule.

notifyDeactivateRule

public void notifyDeactivateRule(IlrRule rule)

Provides notification that an IlrRule has been deactivated in the context.

Specified by:
notifyDeactivateRule in interface IlrTool
Parameters:
rule - The rule.

notifyAssertObject

public void notifyAssertObject(Object object)

Provides notification that an object has been asserted in working memory.

Specified by:
notifyAssertObject in interface IlrTool
Parameters:
object - The object.

notifyAssertLogical

public void notifyAssertLogical(Object object)

Provides notification that a logical object has been asserted in working memory.

Specified by:
notifyAssertLogical in interface IlrTool
Parameters:
object - The object.

notifyRetractObject

public void notifyRetractObject(Object object)

Provides notification that an object has been retracted from working memory.

Specified by:
notifyRetractObject in interface IlrTool
Parameters:
object - The object.

notifyUpdateObject

public void notifyUpdateObject(Object object)

Provides notification that an object has been updated in working memory.

Specified by:
notifyUpdateObject in interface IlrTool
Parameters:
object - The object.

notifyRetractAll

public void notifyRetractAll()

Provides notification that all objects have been retracted from working memory.

Specified by:
notifyRetractAll in interface IlrTool

notifyReset

public void notifyReset()

Provides notification that the context has been reset.

Specified by:
notifyReset in interface IlrTool

notifyAddInstance

public void notifyAddInstance(IlrRuleInstance instance,
                              IlrRuleInstance previous)

Provides notification that a rule instance has been inserted into the agenda.

Specified by:
notifyAddInstance in interface IlrTool
Parameters:
instance - The rule instance.
previous - The rule instance preceding the current instance, or null if the instance is the first one.

notifyRemoveInstance

public void notifyRemoveInstance(IlrRuleInstance instance)

Provides notification that a rule instance has been removed from the agenda without having been fired.

Specified by:
notifyRemoveInstance in interface IlrTool
Parameters:
instance - The removed rule instance.

notifyRemoveAllInstances

public void notifyRemoveAllInstances()

Provides notification that all rule instances have been removed from the agenda without having been fired.

Specified by:
notifyRemoveAllInstances in interface IlrTool

notifyBeginInstance

public 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.

Specified by:
notifyBeginInstance in interface IlrTool
Parameters:
instance - The rule instance.

notifyEndInstance

public void notifyEndInstance(IlrRuleInstance instance)

Provides notification that a rule instance has finished executing the action part.

Specified by:
notifyEndInstance in interface IlrTool
Parameters:
instance - The rule instance.

notifyBeginSequentialInstance

public 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.

Specified by:
notifyBeginSequentialInstance in interface IlrTool

notifyEndSequentialInstance

public void notifyEndSequentialInstance(IlrRule rule,
                                        Object[] tuple,
                                        int priority)
Provides notification that a rule instance has finished executing the action part.

Specified by:
notifyEndSequentialInstance in interface IlrTool

notifyBeginTask

public void notifyBeginTask(IlrTask task)

Provides notification that a task is about to be executed.

Specified by:
notifyBeginTask in interface IlrTool
Parameters:
task - The task.

notifyEndTask

public void notifyEndTask(IlrTask task)

Provides notification that a task is about to finish its execution.

Specified by:
notifyEndTask in interface IlrTool
Parameters:
task - The task.

notifyStartRuleFlow

public 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.

Specified by:
notifyStartRuleFlow in interface IlrTool
Parameters:
task - The task that models the flow.

notifyEndRuleFlow

public 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.

Specified by:
notifyEndRuleFlow in interface IlrTool
Parameters:
task - The task that models the flow.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013