Rule Execution Server API

ilog.rules.debug
Class IlrLocalTracerToolFactory

java.lang.Object
  extended by ilog.rules.engine.IlrToolFactory
      extended by ilog.rules.debug.IlrLocalTracerToolFactory

public class IlrLocalTracerToolFactory
extends IlrToolFactory

The IlrLocalTracerToolFactory class is factory tool, which allows users to create a local trace.

The trace will contain all the selected IlrContext events that will occur during the connection.

See Also:
IlrContext.connectTool(ilog.rules.engine.IlrToolFactory)

Field Summary
static int AGENDA
          With an AGENDA filter, all the events related to the agenda are taken into account.
static int OBJECTS
          With an OBJECTS filter, all the events related to the working memory are taken into account.
static int RULES
          With a RULES filter, all the events related to the ruleset are taken into account.
 
Constructor Summary
IlrLocalTracerToolFactory(Writer writer)
          Construct an IlrLocalTracerToolFactory with IlrLocalTracerToolFactory.RULES | IlrLocalTracerToolFactory.AGENDA | IlrLocalTracerToolFactory.OBJECTS as a filter.
IlrLocalTracerToolFactory(Writer writer, int filter)
          Construct an IlrLocalTracerToolFactory with the given filter.
 
Method Summary
 IlrToolDecorator createToolDecorator(IlrContext context)
          This method provides a convenient way to customize the default behavior.
 
Methods inherited from class ilog.rules.engine.IlrToolFactory
createTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULES

public static final int RULES

With a RULES filter, all the events related to the ruleset are taken into account.

See Also:
Constant Field Values

AGENDA

public static final int AGENDA

With an AGENDA filter, all the events related to the agenda are taken into account.

See Also:
Constant Field Values

OBJECTS

public static final int OBJECTS

With an OBJECTS filter, all the events related to the working memory are taken into account.

See Also:
Constant Field Values
Constructor Detail

IlrLocalTracerToolFactory

public IlrLocalTracerToolFactory(Writer writer,
                                 int filter)

Construct an IlrLocalTracerToolFactory with the given filter.

Parameters:
writer - The java.io.Writer where the trace will be written.
filter - The filter used.

IlrLocalTracerToolFactory

public IlrLocalTracerToolFactory(Writer writer)

Construct an IlrLocalTracerToolFactory with IlrLocalTracerToolFactory.RULES | IlrLocalTracerToolFactory.AGENDA | IlrLocalTracerToolFactory.OBJECTS as a filter.

Parameters:
writer - The java.io.Writer where the trace will be written.
Method Detail

createToolDecorator

public IlrToolDecorator createToolDecorator(IlrContext context)

This method provides a convenient way to customize the default behavior. Each time this is connected to an IlrContext an IlrTool is created.

This method allows users to add a decorator on each newly created IlrTool in order to customize the default behavior.

Parameters:
context - The context on which the connectTool method is called. a new IlrToolDecorator which is used to decorate the newly created IlrTool.
See Also:
IlrToolFactory.createTool(ilog.rules.engine.IlrContext, String), IlrContext.connectTool(ilog.rules.engine.IlrToolFactory)

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013