ilog.rules.dt

Class IlrDTIRLTranslatorFactory

  • java.lang.Object
    • ilog.rules.dt.IlrDTIRLTranslatorFactory


  • public class IlrDTIRLTranslatorFactory
    extends java.lang.Object
    This class is a factory to create instances of DTIRLTranslator. This translator is used to translate a Decision Table or a Decision Tree into IRL. This class is a singleton. A default factory (implemented by this class) is installed. You can install a new factory, extending this class, by calling setDefault() API. Your own factory will create dedicated DT IRL Translator and will be used by the DT code to create this translator.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrDTIRLTranslator buildTranslator(IlrDTController dtController, boolean usedInEditor)
      This method is used to create new instances of IlrDTIRLTranslator used to translate Decision Table and Decision Tree into IRL code.
      static IlrDTIRLTranslatorFactory getDefault()
      This method returns the DTIRLTranslator factory that have previously been installed using setDefault() API, or create and install a new factory of type IlrDTIRLTranslatorFactory.
      static void setDefault(IlrDTIRLTranslatorFactory factory)
      This method install a new DTIRLTranslator factory.
      • Methods inherited from class java.lang.Object

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

      • IlrDTIRLTranslatorFactory

        public IlrDTIRLTranslatorFactory()
    • Method Detail

      • setDefault

        public static void setDefault(IlrDTIRLTranslatorFactory factory)
        This method install a new DTIRLTranslator factory.
        Parameters:
        factory - the factory to install
      • getDefault

        public static IlrDTIRLTranslatorFactory getDefault()
        This method returns the DTIRLTranslator factory that have previously been installed using setDefault() API, or create and install a new factory of type IlrDTIRLTranslatorFactory.
        Returns:
        the currently installed DTIRLTranslatorFactory
      • buildTranslator

        public IlrDTIRLTranslator buildTranslator(IlrDTController dtController,
                                         boolean usedInEditor)
        This method is used to create new instances of IlrDTIRLTranslator used to translate Decision Table and Decision Tree into IRL code. This method can be overridden in a specific factory to create subclasses of IlrDTIRLTranslator
        Parameters:
        dtController - the controller for which this translator will be used.
        usedInEditor - specify whether this translator will be used in the context of editor. If true the generated IRL is cached to optimize regeneration of the table. This caching is useful if this translator is used to generate the IRL code of the DT several times after incremental updates of the DT model.
        Returns:
        the newly created DTIRLTranslator

© Copyright IBM Corp. 1987, 2020