public class DTRuleTable extends DTComponentTable<DTRule>
SORT, SORT_ASCEND, SORT_DECEND
Modifier and Type | Method and Description |
---|---|
DTRule |
add()
Create a new DTRule with all DimensionNodes set to "?".
|
boolean |
add(DTRule o)
Used internally by subclasses.
|
DTRule |
add(int index)
Add DTRule to table at given index.
|
void |
add(int index,
DTRule r)
Used to force the rule into this decision table at given index
|
DTRule |
add(java.lang.String[][] dimensionValues) |
boolean |
canAdd()
can a rule be added to the decision table?
|
void |
clear()
remove all elements in the table
|
DimensionNode[][] |
getNodeMatrix()
Get the DimensionNodes in the sheet as an D x R matrix
(D rows x R columns, D is #dimensions and R is #rules)
|
void |
move(int fromIndex,
int toIndex,
boolean replace)
Move the DictionaryComponent with the given id from its
current location to the location of the second id.
|
addAll, addAll, parentRuleSheet, removeAll, retainAll, set
getParent
contains, containsAll, copyTo, cut, filter, get, getAEReferences, getAllReferences, getByAlias, getByAlias, getByID, getByName, getLast, getMarked, getProtoType, indexOf, isEmpty, isLocked, iterator, listIterator, listIterator, mark, move, ordering, paste, remove, remove, removeByAlias, removeByID, removeByName, removeMarked, reorder, size, sort, sort, sort, subList, toArray, toArray, unMark, validate, validate
equals, exists, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate
equals, getClass, notify, notifyAll, toString, wait, wait, wait
public DTRule add()
add
in class DictionaryComponentTable<DTRule>
public DTRule add(java.lang.String[][] dimensionValues)
public boolean canAdd()
public DTRule add(int index)
add
in class DictionaryComponentTable<DTRule>
public void clear()
DictionaryComponentTable
clear
in interface java.util.Collection<DTRule>
clear
in interface java.util.List<DTRule>
clear
in class DictionaryComponentTable<DTRule>
public void add(int index, DTRule r)
add
in interface java.util.List<DTRule>
add
in class DictionaryComponentTable<DTRule>
index
- r
- DTRulepublic void move(int fromIndex, int toIndex, boolean replace)
DictionaryComponentTable
move
in class DictionaryComponentTable<DTRule>
fromIndex
- the index of the row to movetoIndex
- move row to this locationreplace
- if true, replace existing row at toIndex, if false move existing row to next higher indexpublic DimensionNode[][] getNodeMatrix()
public boolean add(DTRule o)
DictionaryComponentTable
add
in interface java.util.Collection<DTRule>
add
in interface java.util.List<DTRule>
add
in class DictionaryComponentTable<DTRule>
o
- component to be added, must be of correct type for table.