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.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
IlrLocalTracerToolFactory(java.io.Writer writer)
Construct an
IlrLocalTracerToolFactory with
IlrLocalTracerToolFactory.RULES | IlrLocalTracerToolFactory.AGENDA |
IlrLocalTracerToolFactory.OBJECTS as a filter. |
IlrLocalTracerToolFactory(java.io.Writer writer,
int filter)
Construct an
IlrLocalTracerToolFactory with the given filter. |
| Modifier and Type | Method and Description |
|---|---|
IlrToolDecorator |
createToolDecorator(IlrContext context)
This method provides a convenient way to customize the default behavior.
|
createToolpublic static final int RULES
With a RULES filter, all the events related to the ruleset are taken into account.
public static final int AGENDA
With an AGENDA filter, all the events related to the agenda are taken into account.
public static final int OBJECTS
With an OBJECTS filter, all the events related to the working memory are taken into account.
public IlrLocalTracerToolFactory(java.io.Writer writer,
int filter)
Construct an IlrLocalTracerToolFactory with the given filter.
writer - The java.io.Writer where
the trace will be written.filter - The filter used.public IlrLocalTracerToolFactory(java.io.Writer writer)
Construct an IlrLocalTracerToolFactory with
IlrLocalTracerToolFactory.RULES | IlrLocalTracerToolFactory.AGENDA |
IlrLocalTracerToolFactory.OBJECTS as a filter.
writer - The java.io.Writer where
the trace will be written.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.
context - The context on which the connectTool method is called.
a new IlrToolDecorator which is used to decorate the newly created
IlrTool.IlrToolFactory.createTool(ilog.rules.engine.IlrContext, String),
IlrContext.connectTool(ilog.rules.engine.IlrToolFactory)© Copyright IBM Corp. 1987, 2017