Eliminate Decision Based on Attribute Spacing Example

Initial Point Values

 

Offset

Item
Class

Attribute
Name

Attribute
Value

Spacing
Rule

Spacing
Count

Spacing
Breakability

0

VEHICLE

COLOR

YEL,GRN

2

2

0

1

VEHICLE

SIZE

S

3

0

1

2

VEHICLE

COLOR

BLACK

3

0

0

Site is triggered and logic module with a single function block, Eliminate Decision Based On Attribute Spacing, is executed.

Array Offset 0

SRC1.

Head item with class of Vehicle, has a COLOR attribute with value of YEL. The possible attribute values are YEL or GRN. There is a match, so the spacing count is compared to the spacing rule. Since the spacing count is not less than spacing rule, the decision is not eliminated.

SRC2.

Head item with class of Vehicle, has a COLOR attribute with value of GRN. The possible attribute values are YEL or GRN. There is a match, so the spacing count is compared to the spacing rule. Since the spacing count is not less than the spacing rule, the decision is not eliminated.

There are still decisions possible so the breakability flag is not checked.

Array Offset 1

SRC1.

Head item with class of Vehicle, has a SIZE attribute with value of S. The possible attribute value is S. There is a match, so the spacing count is compared to the spacing rule. Since the spacing count is less than the spacing rule, the decision is eliminated.

SRC2.

Head item with class of Vehicle, has a SIZE attribute with value of S. The possible attribute value is S. There is a match, so the spacing count is compared to the spacing rule. Since the spacing count is less than the spacing rule, the decision is eliminated.

There are no decisions possible, so the breakability flag is checked. The flag is set to 1.

Array Offset 2

SRC1.

Head item with class of Vehicle, has a COLOR attribute with value of YEL. The possible attribute value is BLACK. There is no match, so no further processing takes place.

SRC2.

Head item with class of Vehicle, has a COLOR attribute with value of GRN. The possible attribute value is BLACK. There is no match, so no further processing takes place.

More information

Eliminate Decision Based on Attribute Spacing.