Skip navigation links

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

E10663-10


oracle.rules.sdk2.decisiontable
Class Gap

java.lang.Object
  extended by oracle.rules.sdk2.decisiontable.Gap

All Implemented Interfaces:
java.io.Serializable

public class Gap
extends java.lang.Object
implements java.io.Serializable

A Gap specifies a missing rule using a DimensionNode (sibling) that is missing a sibling in order to cover all the Buckets in the sibling Dimension. The task for the UI is to render the gaps. One way is to popup a "gap sheet" containing a rule (conditions but no actions) for each gap. The bucket values for each condition in the rule can be determined using Gap.getDimensionValues(int). E.g. a rulesheet like: Condition | R1 isX | - isY | true isZ | false has gaps g1 and g2. g1.getDimensionValues(0) returns {"-"}, g1.getDimensionValues(1) returns {"false"}, and g1.getDimensionValues(2) returns {"-"}. g2.getDimensionValues(0) returns {"-"}, g2.getDimensionValues(1) returns {"true"}, and g2.getDimensionValues(2) returns {"true"}. The "gap sheet" that should be rendered is Condition | R2 | R3 isX | - | - <-- these come from getDimensionValues(0) isY | false | true <-- these come from getDimensionValues(1) isZ | - | true <-- these come from getDimensionValues(2) When a user indicates that they want to fill a gap, use the Gap.fill() method to create and add a DTRule to fill the gap.

See Also:
RuleSheet.findGaps(), Serialized Form

Method Summary
 DTRule fill()
          add a new rule to fill the gap
 java.lang.String[] getDimensionValues(int i)
          get the values for the gap for the given dimension index

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getDimensionValues

public java.lang.String[] getDimensionValues(int i)
get the values for the gap for the given dimension index
Parameters:
i - the dimension index
Returns:
String[] of values

fill

public DTRule fill()
add a new rule to fill the gap
Returns:
DTRule

Skip navigation links

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

E10663-10


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