ilog.rules.dt
Class IlrDTIRLTranslatorFactory
- java.lang.Object
-
- ilog.rules.dt.IlrDTIRLTranslatorFactory
-
public class IlrDTIRLTranslatorFactory extends java.lang.ObjectThis 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.
-
-
Constructor Summary
Constructors Constructor and Description IlrDTIRLTranslatorFactory()
-
Method Summary
Methods Modifier and Type Method and Description IlrDTIRLTranslatorbuildTranslator(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 IlrDTIRLTranslatorFactorygetDefault()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 voidsetDefault(IlrDTIRLTranslatorFactory factory)This method install a new DTIRLTranslator factory.
-
-
-
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
-
-