Rule Builder > Managing Decision Tables > Table Cell Editing Operations > Series Generation |
Series Generation |
PREVIOUS NEXT |
The series generation functionality allows you to automatically create a set of new partition items or actions based on selected cells. The following topics are covered:
This feature extends the currently selected cell.
If the series generation is available for the current selection, a Hand cursor is displayed, as shown in Figure 12.54.
The generated partition items or actions replace those covered by the new selection. If there are not enough available partition items in the selected partition, new partition items are created on the fly.
When extending a selection of partition items, the series generation is available only if the initial selection contains partition items from the same partition.
If the Control key is pressed when extending the selection, a plus sign (+) appears with the hand, as shown in Figure 12.55.
In this case the generation of new values is made and branches of the extended cells are copied. This allows you to easily create symmetric decision tables by incrementing a condition while duplicating the existing subtrees.
On a Number column, series generation generates a set of values increasing from the last position. The increment repeats the pattern between elements of the initial selection. If only one cell was selected, the increment is 1.0.
In the example at the left in Figure 12.56, the generated value will be 1
. In the example at the right, the first generated value will be 8
(6 + 2-0) and the second generated value, as shown, will be 12
(8 + (6-2)).
|
|
On an interval column, series generation generates a set of intervals whose values are increasing from the last interval. The difference between minimum and maximum repeats the pattern of intervals of the initial selection.
Note |
The series will be slightly different if the predicate used is inclusive or exclusive. |
In the example on the left in Figure 12.57, the generated interval will be 49-59
(48+1 and 49+(48-38)). In the example on the right, the first generated interval will be 49-54
(48+1 and 49+(37-32)) and the second generated interval, as shown, will be 55-65
(54+1 and 55+(48-38)).
|
|
As another example, the series in Figure 12.58 shows the difference between extending an interval with and without branches copied. In group A1-A2 the branches are not copied. In group B1-B2 the branches are copied; note the "+" sign by the hand in the second group (B1-B2).
On a domain column, series generation generates new domain values, following the order in the domain starting from the next item following the last selected domain values and looping over the domain list if required.
In the example in Figure 12.59, the selection extension, starting from Platinum
, will generate the following values, following the order of values in the domain definition:
The left-hand part of Figure 12.59 shows the "before" generation and the right-hand part the "after" generation.
Note that the series includes the start (Platinum), then the four inserted values, and then the remaining value (Gold) which is relocated to a new row below the inserted series.
In this example there are now two Platinum and two Silver items in the partition, therefore, they are marked in red as an error with the column error triangle showing "Overlapping partition items".
For other types of columns (that is, the column type is neither number, number interval, nor domain values), then the selection extension repeats the last selected value.
In Figure 12.60, "London" will be generated all over the new selection
If the cell contains multiple subcolumns, the series generation paradigm is applied to all subcells.
In Figure 12.61, the first generated value when extending the selection Champagne-Welcome
will be Puppet-Welcome
, applying domain generation on the first subcolumn and last selection duplication on the second subcolumn.
Domains | Editing a Partition Item
Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |