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.SerializableIlrDTControllercontrols 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.Objectclone()Creates and return a copy of the controller, of the underlying DT model and of other parts of the controller.IlrDTEnvironmentgetDTEnvironment()Returns the environment in which this controller is used.IlrDTModelgetDTModel()Returns the DT Model managed by this controller.IlrDTRuleElementgetDTRuleElement()Returns the DT element, decision table or decision tree, associated with this controller.IlrDTExpressionManagergetExpressionManager()This method returns the Expression Manager associated to the DTModel related to this controllerjava.util.LocalegetLocale()Returns the Locale associated with the DT controller.IlrVocabularygetVocabulary()Returns the Vocabulary associated with theIlrDTModel.booleanpopulate(IlrDTDataProvider dataProvider)Populates an existing decision table using a data provider.booleanpopulate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex)Populates an existing decision table using a data provider starting atrowIndexandcolumnIndex.booleanpopulate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex, boolean insert)Populates an existing decision table using a data provider starting atrowIndexandcolumnIndexand inserting rows if necessary.
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCreates and return a copy of the controller, of the underlying DT model and of other parts of the controller.- Overrides:
clonein classjava.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.
-
getVocabulary
public IlrVocabulary getVocabulary()
Returns the Vocabulary associated with theIlrDTModel.- Returns:
- The Vocabulary associated with the
IlrDTModel.
-
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
falseif 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 atrowIndexandcolumnIndex.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
falseif 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 atrowIndexandcolumnIndexand 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
falseif populating fails or if the decision table has not been loaded. - See Also:
IlrDTDataProvider
-
-