ilog.rules.factory

Class IlrRulesetPrinter

  • java.lang.Object
    • ilog.rules.factory.IlrRulesetPrinter


  • public class IlrRulesetPrinter
    extends java.lang.Object
    This class provides utilities for writing the components of a ruleset. It is based on IlrRuleWriter class, but further configure it in order to provide more specific methods. An object of this class works implicitly on an instance of IlrRulesetFactory.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrRulesetPrinter(java.io.Writer writer)
      Constructs an object which writes rules to the passed writer.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void begin(IlrRulesetFactory factory)
      Sets the passed ruleset factory object as working object.
      void end()
      Resets this object to its initial state.
      java.lang.String[] getImportPackages()
      Gets the import packages of this ruleset.
      IlrRuleWriter getRuleWriter()
      Gets the underline rule writer.
      void printFunction(IlrFunctionFactory function, boolean indent)
      Prints a function with or without the first level indent.
      void printInitialActions(boolean indent)
      Prints the initial actions with or without the first level indent.
      void printProperties()
      Prints the properties of this ruleset.
      void printRule(IlrRuleFactory rule, boolean indent)
      Prints a rule with or without the first level indent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrRulesetPrinter

        public IlrRulesetPrinter(java.io.Writer writer)
        Constructs an object which writes rules to the passed writer.
    • Method Detail

      • begin

        public void begin(IlrRulesetFactory factory)
        Sets the passed ruleset factory object as working object.
      • end

        public void end()
        Resets this object to its initial state.
      • getRuleWriter

        public final IlrRuleWriter getRuleWriter()
        Gets the underline rule writer.
      • getImportPackages

        public java.lang.String[] getImportPackages()
        Gets the import packages of this ruleset.
      • printProperties

        public void printProperties()
        Prints the properties of this ruleset.
      • printInitialActions

        public void printInitialActions(boolean indent)
        Prints the initial actions with or without the first level indent.
      • printFunction

        public void printFunction(IlrFunctionFactory function,
                         boolean indent)
        Prints a function with or without the first level indent.
      • printRule

        public void printRule(IlrRuleFactory rule,
                     boolean indent)
        Prints a rule with or without the first level indent.

© Copyright IBM Corp. 1987, 2017