ilog.rules.dt

Class IlrDTController

  • java.lang.Object
    • ilog.rules.dt.IlrDTController
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class IlrDTController
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    IlrDTController controls a DT Model as well as its companion classes, such as a rule element and the rule environment. This class also provides an API used to populate a DT model from a data provider.
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Creates and return a copy of the controller, of the underlying DT model and of other parts of the controller.
      IlrDTEnvironment getDTEnvironment()
      Returns the environment in which this controller is used.
      IlrDTModel getDTModel()
      Returns the DT Model managed by this controller.
      IlrDTRuleElement getDTRuleElement()
      Returns the DT element, decision table or decision tree, associated with this controller.
      IlrDTExpressionManager getExpressionManager()
      This method returns the Expression Manager associated to the DTModel related to this controller
      java.util.Locale getLocale()
      Returns the Locale associated with the DT controller.
      IlrVocabulary getVocabulary()
      Returns the Vocabulary associated with the IlrDTModel.
      boolean populate(IlrDTDataProvider dataProvider)
      Populates an existing decision table using a data provider.
      boolean populate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex)
      Populates an existing decision table using a data provider starting at rowIndex and columnIndex.
      boolean populate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex, boolean insert)
      Populates an existing decision table using a data provider starting at rowIndex and columnIndex and inserting rows if necessary.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Creates and return a copy of the controller, of the underlying DT model and of other parts of the controller.
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • getDTRuleElement

        public IlrDTRuleElement getDTRuleElement()
        Returns the DT element, decision table or decision tree, associated with this controller.
        Returns:
        The DT element, decision table or decision tree, associated with this controller.
      • getDTEnvironment

        public IlrDTEnvironment getDTEnvironment()
        Returns the environment in which this controller is used. Environment give access to the vocabulary.
        Returns:
        The environment in which this controller is used. Environment give access to the vocabulary.
      • getLocale

        public java.util.Locale getLocale()
        Returns the Locale associated with the DT controller. It corresponds to the locale of its associated vocabulary.
        Returns:
        The current locale.
      • getDTModel

        public IlrDTModel getDTModel()
        Returns the DT Model managed by this controller.
        Returns:
        The DT Model.
      • getExpressionManager

        public IlrDTExpressionManager getExpressionManager()
        This method returns the Expression Manager associated to the DTModel related to this controller
        Returns:
        the Expression Manager
      • populate

        public boolean populate(IlrDTDataProvider dataProvider)
        Populates an existing decision table using a data provider.

        Note that a data provider is designed to fill in a decision table, whose structure (that is, columns) has already been created, with data provided by the given data provider.

        This method will clear the contents of the decision table. The given data provider should provide data according to the table structure.

        Parameters:
        dataProvider - The data provider.
        Returns:
        True if populating of the table succeeds, and false if populating fails or if the decision table has not been loaded.
        See Also:
        IlrDTDataProvider
      • populate

        public boolean populate(IlrDTDataProvider dataProvider,
                       int rowIndex,
                       int columnIndex)
        Populates an existing decision table using a data provider starting at rowIndex and columnIndex.

        Note that a data provider is designed to fill in a decision table, whose structure (that is, columns) has already been created, with data provided by the given data provider.

        This method does NOT clear existing data from the decision table. Existing data located at these coordinates are erased by data provided by the data provider. The given data provider should provide data according to the table structure.

        Parameters:
        dataProvider - The data provider.
        Returns:
        True if populating of the table succeeds, and false if populating fails or if the decision table has not been loaded.
        See Also:
        IlrDTDataProvider
      • populate

        public boolean populate(IlrDTDataProvider dataProvider,
                       int rowIndex,
                       int columnIndex,
                       boolean insert)
        Populates an existing decision table using a data provider starting at rowIndex and columnIndex and inserting rows if necessary.

        Note that a data provider is designed to fill in a decision table, whose structure (that is, columns) has already been created, with data provided by the given data provider. The given data provider should provide data according to the table structure.

        Parameters:
        dataProvider - The data provider.
        Returns:
        True if populating of the table succeeds, and false if populating fails or if the decision table has not been loaded.
        See Also:
        IlrDTDataProvider

© Copyright IBM Corp. 1987, 2020