Class Gap

java.lang.Object
oracle.rules.sdk2.decisiontable.Gap
All Implemented Interfaces:
Serializable

public class Gap extends Object implements 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 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 fill() method to create and add a DTRule to fill the gap.
See Also:
  • Method Details

    • getDimensionValues

      public 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