Rule Execution Server API

ilog.rules.tools
Class IlrFactoryGenerator

java.lang.Object
  extended by ilog.rules.tools.IlrBaseTool
      extended by ilog.rules.tools.IlrFactoryGenerator

Deprecated. As of JRules 7.5, this class is deprecated and won't be replaced

public class IlrFactoryGenerator
extends ilog.rules.tools.IlrBaseTool

This class is provided as a tool to convert rules stored in files into factory objects saved in a binary file. The generated binary file can be in the same directory of a class file to serve as a resource for that class. Using the methods of IlrUtil, the contents of the file can be converted into factory objects again.

The syntax of the command is as follows:

    java ilog.rules.tools.IlrFactoryGenerator \
       [-context contextClass] \
       [-d directory] \
       [-output filename] \
       file1 file2 ...
 

The options are:

Here is an example of use:

    java ilog.rules.tools.IlrFactoryGenerator \
       -context connect4.model.Connect4Agent \
       -d classes/connect4/model \
       -output connect4.ser \
       data/connect4.ilr
 

Here, the rule file data/connect4.ilr will be translated into the binary file classes/connect4/model/connect4.ser. This file will be accessed as a resource of the class connect4.model.Connect4Agent.

See Also:
IlrRuleset, IlrUtil

Field Summary
 
Fields inherited from class ilog.rules.tools.IlrBaseTool
arguments, contextClass, items, reflect, ruleset, writer
 
Method Summary
 
Methods inherited from class ilog.rules.tools.IlrBaseTool
createFile, createRuleset, decodeArguments, decodeLastArguments, displayUsage, init, initContextClass, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013