|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.5.0) E10663-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.rules.sdk2.dictionary.DictionaryObject
oracle.rules.sdk2.dictionary.DictionaryComponent
oracle.rules.sdk2.ruleset.RuleComponent
oracle.rules.sdk2.ruleset.UnnamedRuleComponent
oracle.rules.sdk2.decisiontable.DimensionNode
public class DimensionNode
A DimensionNode stores the dimension values for a "cell" in the decision table. A DimensionNode references one or more buckets from its Dimension's BucketSet. A DimensionNode references its parent (a DimensionNode in the previous Dimension) and references its children using an IDTable<DimensionNode> containing nodes in the next Dimension in the dimension tree.
DimensionNodes with multiple buckets can be split into sibling nodes each with fewer buckets than the original.
Sibling nodes can be recursively merged to the extent that their respective children are recursively equal, down to and including the action nodes.
Dimension nodes are sorted according the the order of buckets in their bucketset. Don't know (?) sorts low. Don't care (-) sorts high. Single values sort lower than multi-values, e.g. 1 is less than 1,2 is less than 2.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent |
---|
DictionaryComponent.Diff, DictionaryComponent.DiffType |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static java.lang.String |
ALL_VALUES_STRING |
static java.lang.String |
UNKNOWN_VALUE_STRING |
Method Summary | |
---|---|
IDTable<Bucket> |
getBuckets() Get DimensionNode Buckets. |
BucketSet |
getBucketSet() Get BucketSet. |
IDTableProperty<Bucket> |
getBucketsProperty() |
DTActionNode |
getChildActionNode() Get the child DTActionNode below this DimensionNode. |
IDTable<DimensionNode> |
getChildDimensionNodes() Get DimensionNode IDTable of child dimension nodes below this Dimension Node in the next Dimension. |
Dimension |
getDimension() Get Dimension to whom this DimensionNode belongs. |
DimensionNode |
getParentDimensionNode() Get parent DimensionNode, i.e., the node above this DimensionNode from the previous Dimension |
int[] |
getSelected() |
java.lang.String[] |
getValueOptions() |
java.lang.String[] |
getValues() Get dimension values of DimensionNode. |
java.lang.String |
getValuesAsString(java.lang.String[] values) Get possibly multiple values as a comma separated String |
java.lang.String[] |
getValuesFromString(java.lang.String values) Parse possibly multiple values from comma separated string |
void |
getValuesFromString(java.lang.String values, java.util.List<java.lang.String> existingValues, java.util.List<java.lang.String> newValues) Parse possibly multiple values from comma separated string |
int |
maxRuleIndex() return maximum rule index of rules including this node. |
void |
merge(boolean deep) Merge all child DimensionNodes, with or without merging actions. |
void |
merge(DimensionNode sibling) Merge with sibling DimensionNode. |
int |
minRuleIndex() return minimum rule index of rules including this node. |
boolean |
removeActionlessRules() Remove rules that include this dimension node with no actions selected |
boolean |
sameBuckets(DimensionNode dn) Does this node have the same buckets as the given node? |
void |
setParentDimensionNode(DimensionNode parent) set parent DimensionNode |
void |
setValues(java.lang.String... values) Set dimension values of DimensionNode. |
void |
split() Split this DimensionNode into siblings such that this node and new siblings each have a single bucket value. |
void |
split(java.util.List<Bucket> keepValues) Split this DimensionNode into two siblings such that this node contains the keepValues and the new sibling contains the other values currently in this node's set of buckets. |
Methods inherited from class oracle.rules.sdk2.ruleset.UnnamedRuleComponent |
---|
init, isAliasDistinct, isNameDistinct |
Methods inherited from class oracle.rules.sdk2.ruleset.RuleComponent |
---|
get, getParent, getParentTable, parentAction, parentComponent, parentFunction, parentPattern, parentRule, parentRuleCommon, parentRuleSheet, parentVariable, RHSRuleVariables |
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent |
---|
clear, containsKey, containsValue, entrySet, get, getAlias, getAlias, getAliasProperty, getAllReferences, getCustom, getDependents, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, getIndex, getIndex, getName, getNameProperty, getNext, getObjectPath, getOptions, getPrevious, getProperties, getProperty, getSelected, hasDiff, isEmpty, isFullyQualifiedName, keySet, put, putAll, remove, setAlias, setCustom, setDescription, setName, size, validate, validate, values |
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject |
---|
equals, exists, getAEReferences, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getReferences, getRuleSet, getState, getWarnings, hashCode, isModified, validate |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent |
---|
getAlias, getName, getPropertyNames, setAlias, setName |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final java.lang.String ALL_VALUES_STRING
public static final java.lang.String UNKNOWN_VALUE_STRING
Method Detail |
---|
public BucketSet getBucketSet()
public IDTableProperty<Bucket> getBucketsProperty()
public IDTable<Bucket> getBuckets()
public java.lang.String[] getValues()
public java.lang.String[] getValueOptions()
public java.lang.String[] getValuesFromString(java.lang.String values)
values
-public void getValuesFromString(java.lang.String values, java.util.List<java.lang.String> existingValues, java.util.List<java.lang.String> newValues)
values
-existingValues
- returned existing bucket aliasesnewValues
- returned new bucket aliasespublic java.lang.String getValuesAsString(java.lang.String[] values)
values
-public void setValues(java.lang.String... values)
values
- names of bucketspublic int[] getSelected()
public Dimension getDimension()
public DimensionNode getParentDimensionNode()
public void setParentDimensionNode(DimensionNode parent)
parent
- TODO: validate correct Dimensionpublic IDTable<DimensionNode> getChildDimensionNodes()
public DTActionNode getChildActionNode()
public void merge(boolean deep) throws SDKException
SDKException
RuleSheet.merge(List, boolean).
public void merge(DimensionNode sibling)
sibling
- the DimensionNode to merge with thisfor more merge options.
public void split() throws SDKException
SDKException
public void split(java.util.List<Bucket> keepValues) throws SDKException
keepValues
- the bucket values to keep in this nodeSDKException
public final int minRuleIndex()
public final int maxRuleIndex()
public boolean sameBuckets(DimensionNode dn)
dn
- a dimension nodepublic boolean removeActionlessRules()
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.5.0) E10663-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |