Restricting a Characteristic with a Table:ExampleConfigurable material BIKE has characteristics MODEL, TYPE and FRAME_HEIGHT.
MODEL |
TYPE |
FRAME_HEIGHT |
Trekking |
Women |
48 |
Trekking |
Women |
53 |
Trekking |
Men |
48 |
Trekking |
Men |
53 |
Mountain |
Women |
46 |
Mountain |
Women |
50 |
Mountain |
Women |
53 |
Mountain |
Women |
57 |
Mountain |
Men |
50 |
Mountain |
Men |
54 |
Mountain |
Men |
58 |
Racing |
Women |
46 |
Racing |
Women |
49 |
Racing |
Women |
53 |
Racing |
Women |
57 |
Racing |
Men |
49 |
Racing |
Men |
53 |
Racing |
Men |
57 |
Racing |
Men |
61 |
Racing |
Men |
64 |
Characteristic FRAME_HEIGHT is restrictable. Characteristics MODEL and TYPE are single-value. You want the system to control the allowed values of characteristic FRAME_HEIGHT.
1. Create a single-value characteristic, T_FRAME_HEIGHT, especially for the table.
Note
Tables that you specify in constraints must contain single-value characteristics only. This is why you need to define a characteristic especially for the table.
Create table T_FH, and enter the values combinations above. You need not define value assignment alternatives to restrict values.
Create dependency net CN_BIKE and assign constraint CS_FRAME_HEIGHT to this dependency net.
Enter the following source code in the constraint:
OBJECTS: BIKE IS_A (300) BIKE where MOD = MODEL; FH = FRAME_HEIGHT. RESTRICTIONS: TABLE T_FH (MODEL = MOD,TYPE = TY,T_FRAME_HEIGHT = FH). INFERENCES: FH.
Allocate the dependency net to the configuration profile of material BIKE.
On the value assignment screen, the allowed values of characteristic FRAME_HEIGHT are restricted, depending on the values assigned to characteristics MODEL and TYPE.