Metis Smart Modeling - Rules
From Metis Documentation
|  (→Single Selection) |  (→Table Selection) | ||
| Line 363: | Line 363: | ||
| Additional comments can be entered in the box below the “comment” field if desired. | Additional comments can be entered in the box below the “comment” field if desired. | ||
| Click on the “add” button for the “filter” section. | Click on the “add” button for the “filter” section. | ||
| - | A new window opens. It is possible to add positions, variables or attributes. Select  | + | A new window opens. It is possible to add positions, [[Metis_Smart_Modeling_-_Variables|variables]] or attributes. Select “[[Metis_Smart_Modeling_-_Variables|variables]] ..” | 
| - | In the variables list, select “$HasRAID.” Then click on confirm. | + | In the [[Metis_Smart_Modeling_-_Variables|variables]] list, select “$HasRAID.” Then click on confirm. | 
| The variable is now added to the filter variable table. | The variable is now added to the filter variable table. | ||
| - | In the “filter  | + | In the “filter [[Metis_Smart_Modeling_-_Variables|variables]]” section, change the “Condition” to “greater than.” | 
| The main part of the rule is shown by the blue and red colored sections in the middle of the window, where the inputs and outputs can be entered. | The main part of the rule is shown by the blue and red colored sections in the middle of the window, where the inputs and outputs can be entered. | ||
| The purpose of this rule is to determine which RAID configuration will be setup in the system based on the selection done in a mask. | The purpose of this rule is to determine which RAID configuration will be setup in the system based on the selection done in a mask. | ||
| To do so, click on the “add” button for the “Input” section. | To do so, click on the “add” button for the “Input” section. | ||
| - | The same window from before opens. Select  | + | The same window from before opens. Select “[[Metis_Smart_Modeling_-_Variables|variables]]” and select “$RAID_Type” from the list. | 
| Click on confirm. The variable is added to the input field. | Click on confirm. The variable is added to the input field. | ||
| Click on the “add” button for the “output” section. | Click on the “add” button for the “output” section. | ||
| - | The same window from before opens. Select  | + | The same window from before opens. Select “[[Metis_Smart_Modeling_-_Variables|variables]].” | 
| Select “$NB_HDD” from the list and confirm to continue. The variable is added to the output field. | Select “$NB_HDD” from the list and confirm to continue. The variable is added to the output field. | ||
| The requirement for this rule is that for a RAID configuration with a value of 0 or 1, the number of disks must be 2, hence why “Q out” is set to 2. With a value anywhere from 2 to 10, the number of disks must be 3, hence “Q out” is set to 3. | The requirement for this rule is that for a RAID configuration with a value of 0 or 1, the number of disks must be 2, hence why “Q out” is set to 2. With a value anywhere from 2 to 10, the number of disks must be 3, hence “Q out” is set to 3. | ||