|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.rules.sdk2.decisiontable.Gap
public class Gap
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.
RuleSheet.findGaps()
,
Serialized FormMethod 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 |
---|
public java.lang.String[] getDimensionValues(int i)
i
- the dimension index
public DTRule fill()
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |