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.
| 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. |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic IlrDTRuleElement getDTRuleElement()
public IlrDTEnvironment getDTEnvironment()
public IlrVocabulary getVocabulary()
IlrDTModel.IlrDTModel.public java.util.Locale getLocale()
public IlrDTModel getDTModel()
public IlrDTExpressionManager getExpressionManager()
public boolean populate(IlrDTDataProvider dataProvider)
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.
dataProvider - The data provider.false if populating fails
or if the decision table has not been loaded.IlrDTDataProviderpublic boolean populate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex)
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.
dataProvider - The data provider.false if populating fails
or if the decision table has not been loaded.IlrDTDataProviderpublic boolean populate(IlrDTDataProvider dataProvider, int rowIndex, int columnIndex, boolean insert)
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.
dataProvider - The data provider.false if populating fails
or if the decision table has not been loaded.IlrDTDataProvider© Copyright IBM Corp. 1987, 2017