Skip navigation links
oracle.rules.sdk2.decisiontable
Class DTRuleTable
java.lang.Object
oracle.rules.sdk2.dictionary.DictionaryObject
oracle.rules.sdk2.dictionary.DictionaryComponentTable<T>
oracle.rules.sdk2.ruleset.RuleComponentTable<T>
oracle.rules.sdk2.decisiontable.DTComponentTable<DTRule>
oracle.rules.sdk2.decisiontable.DTRuleTable
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<DTRule>, java.util.Collection<DTRule>, java.util.List<DTRule>
-
public class DTRuleTable
- extends DTComponentTable<DTRule>
A list of DTRules in the decision table. RuleSheet contains a DTRuleTable, which holds multiple DTRules in this RuleSheet.
- See Also:
- Serialized Form
Method Summary |
DTRule |
add()
Create a new DTRule with all DimensionNodes set to "?". |
DTRule |
add(int index)
Add DTRule to 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 |
void |
reorder(java.util.List<java.lang.Integer> ordering)
reorder this table according to a list of indexes. |
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponentTable |
add, contains, containsAll, copyTo, cut, get, getAEReferences, getAllReferences, getByAlias, getByID, getByName, getLast, getMarked, indexOf, isEmpty, isLocked, iterator, listIterator, listIterator, mark, move, move, paste, remove, remove, removeAll, removeByAlias, removeByID, removeByName, removeMarked, size, sort, sort, sort, subList, toArray, toArray, unMark, validate, validate |
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject |
equals, exists, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectPath, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
add, addAll, addAll, equals, hashCode, lastIndexOf, retainAll |
add
public DTRule add()
- Create a new DTRule with all DimensionNodes set to "?". Add it toward the end of the DTRuleTable reusing "?" DimensionNodes. If a DTRule already exists with all DimensionNodes "?", just return that rule.
-
- Overrides:
add
in class DictionaryComponentTable<DTRule>
-
- Returns:
- DTRule with all DimensionNodes set to "?".
add
public DTRule add(java.lang.String[][] dimensionValues)
canAdd
public boolean canAdd()
- can a rule be added to the decision table? at most 1 rule can have Don't Cares in all dimensions. If no such rule exists, then a new rule can be added and this method returns true.
-
- Returns:
- boolean
add
public DTRule add(int index)
- Add DTRule to table at given index.
-
- Specified by:
add
in class DictionaryComponentTable<DTRule>
-
- Returns:
- DTRule added
- Throws:
java.lang.UnsupportedOperationException
- if table is locked.
clear
public void clear()
- Description copied from class:
DictionaryComponentTable
- remove all elements in the table
-
- Specified by:
clear
in interface java.util.Collection<DTRule>
- Specified by:
clear
in interface java.util.List<DTRule>
- Overrides:
clear
in class DictionaryComponentTable<DTRule>
reorder
public void reorder(java.util.List<java.lang.Integer> ordering)
- Description copied from class:
DictionaryComponentTable
- reorder this table according to a list of indexes. e.g. to reverse a list of 3 elements, use ordering (2,1,0).
-
- Overrides:
reorder
in class DictionaryComponentTable<DTRule>
-
- Parameters:
ordering
- a list of indexes the same size as this list.
Skip navigation links
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.