Rule Execution Server API

ilog.rules.engine
Class IlrToolDecorator

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

public class IlrToolDecorator
extends Object
implements IlrTool

The IlrToolDecorator class is useful to customize an already defined IlrTool.

See Also:
IlrLocalTracerToolFactory, ilog.rules.debug.IlrBuilderToolFactory

Constructor Summary
IlrToolDecorator()
           
 
Method Summary
 IlrTool getTool()
          Gets the decorated IlrTool.
 void notifyActivateRule(IlrRule rule)
          Redirects the call on the decorated IlrTool.
 void notifyAddInstance(IlrRuleInstance instance, IlrRuleInstance previous)
          Redirects the call on the decorated IlrTool.
 void notifyAddRule(IlrRule rule)
          Redirects the call on the decorated IlrTool.
 void notifyAssertLogical(Object object)
          Redirects the call on the decorated IlrTool.
 void notifyAssertObject(Object object)
          Redirects the call on the decorated IlrTool.
 void notifyBeginInstance(IlrRuleInstance instance)
          Redirects the call on the decorated IlrTool.
 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()
          Redirects the call on the decorated IlrTool.
 void notifyDeactivateRule(IlrRule rule)
          Redirects the call on the decorated IlrTool.
 void notifyDefineFunction(IlrFunction function)
          Redirects the call on the decorated IlrTool.
 void notifyDisconnect()
          Redirects the call on the decorated IlrTool.
 void notifyEndInstance(IlrRuleInstance instance)
          Redirects the call on the decorated IlrTool.
 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()
          Redirects the call on the decorated IlrTool.
 void notifyRemoveInstance(IlrRuleInstance instance)
          Redirects the call on the decorated IlrTool.
 void notifyRemoveRule(IlrRule rule)
          Redirects the call on the decorated IlrTool.
 void notifyReset()
          Redirects the call on the decorated IlrTool.
 void notifyRetractAll()
          Redirects the call on the decorated IlrTool.
 void notifyRetractObject(Object object)
          Redirects the call on the decorated IlrTool.
 void notifySetInitialRule(Vector initialStatements)
          Redirects the call on the decorated IlrTool.
 void notifyStartRuleFlow(IlrTask task)
          Provides notification that a flow is about to be executed.
 void notifyUpdateObject(Object object)
          Redirects the call on the decorated IlrTool.
 void setTool(IlrTool tool)
          Sets the decorated IlrTool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrToolDecorator

public IlrToolDecorator()
Method Detail

setTool

public void setTool(IlrTool tool)

Sets the decorated IlrTool.

Parameters:
tool - The tool.

getTool

public IlrTool getTool()

Gets the decorated IlrTool.

Returns:
The decorated tool.

notifyConnect

public void notifyConnect()

Redirects the call on the decorated IlrTool.

Specified by:
notifyConnect in interface IlrTool

notifyDisconnect

public void notifyDisconnect()

Redirects the call on the decorated IlrTool.

Specified by:
notifyDisconnect in interface IlrTool

notifyAddRule

public void notifyAddRule(IlrRule rule)

Redirects the call on the decorated IlrTool.

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

notifyRemoveRule

public void notifyRemoveRule(IlrRule rule)

Redirects the call on the decorated IlrTool.

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

notifySetInitialRule

public void notifySetInitialRule(Vector initialStatements)

Redirects the call on the decorated IlrTool.

Specified by:
notifySetInitialRule in interface IlrTool
Parameters:
initialStatements - The Initial Actions for notification.

notifyActivateRule

public void notifyActivateRule(IlrRule rule)

Redirects the call on the decorated IlrTool.

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

notifyDeactivateRule

public void notifyDeactivateRule(IlrRule rule)

Redirects the call on the decorated IlrTool.

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

notifyDefineFunction

public void notifyDefineFunction(IlrFunction function)

Redirects the call on the decorated IlrTool.

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

notifyAssertObject

public void notifyAssertObject(Object object)

Redirects the call on the decorated IlrTool.

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

notifyAssertLogical

public void notifyAssertLogical(Object object)

Redirects the call on the decorated IlrTool.

Specified by:
notifyAssertLogical in interface IlrTool
Parameters:
object - The asserted logical object for notification.

notifyRetractObject

public void notifyRetractObject(Object object)

Redirects the call on the decorated IlrTool.

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

notifyUpdateObject

public void notifyUpdateObject(Object object)

Redirects the call on the decorated IlrTool.

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

notifyRetractAll

public void notifyRetractAll()

Redirects the call on the decorated IlrTool.

Specified by:
notifyRetractAll in interface IlrTool

notifyReset

public void notifyReset()

Redirects the call on the decorated IlrTool.

Specified by:
notifyReset in interface IlrTool

notifyAddInstance

public void notifyAddInstance(IlrRuleInstance instance,
                              IlrRuleInstance previous)

Redirects the call on the decorated IlrTool.

Specified by:
notifyAddInstance in interface IlrTool
Parameters:
instance - The rule instance for notification.
previous - The previous rule instance.

notifyRemoveInstance

public void notifyRemoveInstance(IlrRuleInstance instance)

Redirects the call on the decorated IlrTool.

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

notifyRemoveAllInstances

public void notifyRemoveAllInstances()

Redirects the call on the decorated IlrTool.

Specified by:
notifyRemoveAllInstances in interface IlrTool

notifyBeginInstance

public void notifyBeginInstance(IlrRuleInstance instance)

Redirects the call on the decorated IlrTool.

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

notifyEndInstance

public void notifyEndInstance(IlrRuleInstance instance)

Redirects the call on the decorated IlrTool.

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

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 provokes 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 provokes 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