Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


oracle.rules.sdk2.decisiontable
Class Dimension

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.DictionaryComponent
          extended by oracle.rules.sdk2.ruleset.RuleComponent
              extended by oracle.rules.sdk2.ruleset.UnnamedRuleComponent
                  extended by oracle.rules.sdk2.ruleset.Expression
                      extended by oracle.rules.sdk2.decisiontable.Dimension

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, UnnamedComponent

public class Dimension
extends Expression

A Dimension defines a top-level ANDed term in the condition part of every rule in a decision table. A Dimension extends Expression and contains

The Expression's value can be quantized using the BucketSet. One way to think of a rule sheet is a multi-dimensional cube whose cells are addressed by a bucket in each dimension and contain actions.

Dimensions are ordered by their position in the DimensionTable of the containing RuleSheet.

See Also:
Serialized Form

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

 

Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_CUSTOMIZABLE, PROP_CUSTOMIZABLE_TEMPLATE, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DESCRIPTION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_TABLE, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_ID, PROP_ID_COUNTER, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY_TABLE, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_FIRING_LIMIT, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_FORM, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UPDATE_NUMBER, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERSION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRAPPER_SIGNATURE, PROP_WRITABLE, PROP_XML_NAME

 

Method Summary
 BucketSet getBucketSet()
          Get BucketSet of the dimension.
 DimensionNodeTable getDimensionNodeTable()
          Get DimensionNodeTable
 TableProperty<DimensionNode> getDimensionNodeTableProperty()
          Get DimensionNodeTable Property.
 DictionaryProperty<BucketSet> getPrivateBucketSetProperty()
          Get PrivateBucketSet Property.
 java.lang.String[] getSharedBucketSetOptions()
           
 SettableProperty<java.lang.String> getSharedBucketSetProperty()
          Get SharedBucketSet Property.
 int getSharedBucketSetSelected()
           
 boolean isBucketSetShared()
          Is the BucketSet shared
 void merge()
          Merge all DimensionNodes in this Dimension so that no node has a sibling.
 void setSharedBucketSet(BucketSet bucketSet)
          Set SharedBucketSet and BucketSet shared flag Null bucketSet clears shared flag.
 void setSharedBucketSetByAlias(java.lang.String alias)
           
 void split()
          Split the Dimension in the same way split(true)
 void split(boolean expanded)
          Split the Dimension such that each sibling group has all values in the bucketset.

 

Methods inherited from class oracle.rules.sdk2.ruleset.Expression
append, balanced, evaluateConstant, getAEReferences, getAllReferences, getAutoPatternPropertyOptions, getConstant, getConstantOptions, getConstantProperty, getConstantSelected, getConstructor, getConstructorOptions, getConstructorSelected, getCursorPosition, getDependentModelComponents, getDTActionParameterName, getDTActionParameterNameProperty, getFunction, getFunctionOptions, getFunctionSelected, getOperator, getOperatorOptions, getOperatorSelected, getParameterAlias, getParameterID, getParameterName, getParameterTypeIDs, getParameterTypes, getReferences, getResultToken, getShowConstants, getShowFunctions, getShowVariables, getTokenUnderCursor, getValue, getValueOptions, getValueProperty, getValueSelected, getVariable, getVariableOptions, getVariableSelected, insert, isConstant, isCustomizable, isParameterRequired, replace, same, setConstant, setConstant, setConstructor, setCursorPosition, setCustomizable, setDTActionParameterName, setFunction, setLiteralValue, setOperator, setParameterRequired, setShowConstants, setShowConstructorsWithFunctions, setShowFunctions, setShowVariables, setValue, setVariable, unbalanced

 

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, getCustom, getDependents, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, 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, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, validate

 

Methods inherited from class java.lang.Object
getClass, 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

 

Method Detail

getPrivateBucketSetProperty

public DictionaryProperty<BucketSet> getPrivateBucketSetProperty()
Get PrivateBucketSet Property.
Returns:
DictionaryProperty of type BucketSet

getSharedBucketSetProperty

public SettableProperty<java.lang.String> getSharedBucketSetProperty()
Get SharedBucketSet Property.
Returns:
SettableProperty of type String

getDimensionNodeTableProperty

public TableProperty<DimensionNode> getDimensionNodeTableProperty()
Get DimensionNodeTable Property.
Returns:
DimensionNode Table

getBucketSet

public BucketSet getBucketSet()
Get BucketSet of the dimension. If shared=true, we point to the shared bucket set, you could then use Dimension.getBucketSet() to edit the shared bucket set, the UI should issue some kind of warning or info. If you set shared=false, then the private bucket set should be initialized from the shared bucketset. If there is no shared bucketset, then the private bucketset initially contains "otherwise" and "-" (don't care). Dimension.getBucketSet() returns the private bucket set.
Returns:
BucketSet of the Dimension

isBucketSetShared

public boolean isBucketSetShared()
Is the BucketSet shared
Returns:
boolean flag

setSharedBucketSet

public void setSharedBucketSet(BucketSet bucketSet)
Set SharedBucketSet and BucketSet shared flag Null bucketSet clears shared flag.
Parameters:
bucketSet -

setSharedBucketSetByAlias

public void setSharedBucketSetByAlias(java.lang.String alias)

getSharedBucketSetOptions

public java.lang.String[] getSharedBucketSetOptions()

getSharedBucketSetSelected

public int getSharedBucketSetSelected()

getDimensionNodeTable

public DimensionNodeTable getDimensionNodeTable()
Get DimensionNodeTable
Returns:
DimensionNodeTable of DimensionNodes in this Dimension

merge

public void merge()
           throws SDKException
Merge all DimensionNodes in this Dimension so that no node has a sibling. This may decrease the number rules in the sheet, and may create invalid DTActionNodes if conflicting actions parameter values are merged.
Throws:
SDKException
See Also:
RuleSheet.merge(boolean)

split

public void split()
           throws SDKException
Split the Dimension in the same way split(true)
Throws:
SDKException

split

public void split(boolean expanded)
           throws SDKException
Split the Dimension such that each sibling group has all values in the bucketset. This split method never splits existing dimension nodes. Use splitExisting if that that is the desired behavior. if expanded is false, then for each sibling group, only one Dimension Node is added and this new node contains all of the previously unrepresented buckets. if expanded is true, then for each sibling group, one Dimension Node is added for each previously unrepresented bucket for subsequent rows in the DimensionTable, a "don't care" is added for each new node in this Dimension. These Dimensions must then be split if one wishes to have a rule combinations of buckets.
Throws:
SDKException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.