Metis Smart Modeling - Rules
From Metis Documentation
Line 3: | Line 3: | ||
== What is a rule? == | == What is a rule? == | ||
[[Image:Model_Exec_3.png|thumb|upright=0.5|alt=Metis Smart Quote Rule Execution Description|Metis Smart Quote Rule Execution Description]] | [[Image:Model_Exec_3.png|thumb|upright=0.5|alt=Metis Smart Quote Rule Execution Description|Metis Smart Quote Rule Execution Description]] | ||
- | Based on the [[Metis_Smart_Modeling_-_Models|model]] execution scheme, rules fit inside of group of rules in Metis. They are the logical part of the execution process. As described in the [[Metis_Smart_Modeling_-_Models|model]] section, once a group of rules is executed, all [[Metis_Smart_Modeling_-_Variables|variables]] are instantiated and only after this the rules are executed. In opposition to groups of rules inside a [[Metis_Smart_Modeling_-_Models|model]], rules don't have a specific order in which they are | + | Based on the [[Metis_Smart_Modeling_-_Models|model]] execution scheme, rules fit inside of [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] in Metis. They are the logical part of the execution process. As described in the [[Metis_Smart_Modeling_-_Models|model]] section, once a [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] is executed, all [[Metis_Smart_Modeling_-_Variables|variables]] are instantiated and only after this the rules are executed. In opposition to groups of rules inside a [[Metis_Smart_Modeling_-_Models|model]], rules don't have a specific order in which they are |
Detailed description of a rule and its components. | Detailed description of a rule and its components. | ||
Line 355: | Line 355: | ||
In the “Modeling” menu, make sure to select the “rules” sub-menu. | In the “Modeling” menu, make sure to select the “rules” sub-menu. | ||
- | To create a new rule, first select an existing group of rules from the drop down list. For example, “s-basic enhancements.” | + | To create a new rule, first select an existing [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] from the drop down list. For example, “s-basic enhancements.” |
Then click on the “Add” button. A window opens where the rule will be created. | Then click on the “Add” button. A window opens where the rule will be created. | ||
In the “Type” field, select “table.” | In the “Type” field, select “table.” | ||
Line 1,005: | Line 1,005: | ||
{{Video | {{Video | ||
| <mediaplayer width='400' height='300'>File:Testing rules and groups of rules OK.mp4</mediaplayer> | | <mediaplayer width='400' height='300'>File:Testing rules and groups of rules OK.mp4</mediaplayer> | ||
- | | Testing rules and group of rules. | + | | Testing rules and [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]]. |
}} | }} | ||
Line 1,023: | Line 1,023: | ||
The first rule will determine the number of 1 GB modules required to suit his needs. For example the input is 4 GB and the result is 4 modules of 1 GB each. The situation would be more complicated if the user had chosen 8 GB and that the machine could only hold 4 modules in total. This means that the [[Metis_Smart_Modeling_-_Models|model]] requires a second rule to check the number of 1 GB module against the number of slots available. In the example of a input equal to 8, the resulting number of modules is 8. The second rule could then take this value and modify the result to 2 GB modules thus making it possible to be installed on the machine. | The first rule will determine the number of 1 GB modules required to suit his needs. For example the input is 4 GB and the result is 4 modules of 1 GB each. The situation would be more complicated if the user had chosen 8 GB and that the machine could only hold 4 modules in total. This means that the [[Metis_Smart_Modeling_-_Models|model]] requires a second rule to check the number of 1 GB module against the number of slots available. In the example of a input equal to 8, the resulting number of modules is 8. The second rule could then take this value and modify the result to 2 GB modules thus making it possible to be installed on the machine. | ||
- | Because in this situation the second needs to have the result of the first one available in order to use it has an input it is necessary that second be placed in another group of rules which should be executed after the one containing the first rule. | + | Because in this situation the second needs to have the result of the first one available in order to use it has an input it is necessary that second be placed in another [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] which should be executed after the one containing the first rule. |
Line 1,073: | Line 1,073: | ||
=== Duplicating a rule === | === Duplicating a rule === | ||
- | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be duplicated is stored. Select the rule and click on the DUPLICATE button [[File:MetisSmartModelingDuplicateButton.PNG|link=]], the rule is immediately copied and placed in the selected group of rules. It is an exact copy, or duplicate, of the original one. It can then be edited to fit all requirements or moved to another group. | + | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be duplicated is stored. Select the rule and click on the DUPLICATE button [[File:MetisSmartModelingDuplicateButton.PNG|link=]], the rule is immediately copied and placed in the selected [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]]. It is an exact copy, or duplicate, of the original one. It can then be edited to fit all requirements or moved to another group. |
Line 1,082: | Line 1,082: | ||
=== Moving a rule to another group of rules=== | === Moving a rule to another group of rules=== | ||
- | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be moved is stored. Select the rule and click on the MOVE button [[File:MetisSmartModelingMoveButton.PNG|link=]], a new window opens where the target group of rule can be selected from the complete list of groups available in Metis Smart Modeling. Once the group of rules selected, validation is required in order to save all changes made to the rule. | + | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be moved is stored. Select the rule and click on the MOVE button [[File:MetisSmartModelingMoveButton.PNG|link=]], a new window opens where the target [[Metis_Smart_Modeling_-_Group_of_Rules|group of rule]] can be selected from the complete list of groups available in Metis Smart Modeling. Once the [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] selected, validation is required in order to save all changes made to the rule. |
Line 1,089: | Line 1,089: | ||
{{Note | {{Note | ||
- | | Moving a rule doesn't create a copy of it, neither an additional link. It really moves it from one group of rules to another. | + | | Moving a rule doesn't create a copy of it, neither an additional link. It really moves it from one [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] to another. |
}} | }} | ||
=== linking a rule with another group of rules=== | === linking a rule with another group of rules=== | ||
- | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be linked to other group(s) of rule is located. Select the rule and click on the LINK button [[File:MetisSmartModelingLinkButton.PNG|link=]], a window opens up where a target group of rules can be selected from a drop-down list to set the group of rules where the selected rule should be applied. Once selected, validation is required in order to save all changes made to the rule. | + | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be linked to other group(s) of rule is located. Select the rule and click on the LINK button [[File:MetisSmartModelingLinkButton.PNG|link=]], a window opens up where a target [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] can be selected from a drop-down list to set the [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] where the selected rule should be applied. Once selected, validation is required in order to save all changes made to the rule. |
{{Note | {{Note | ||
- | | Linking a rule to more than one group of rules, doesn't copy the rule inside that group. It is still identified through one ID. | + | | Linking a rule to more than one [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]], doesn't copy the rule inside that group. It is still identified through one ID. |
}} | }} | ||
Line 1,110: | Line 1,110: | ||
== Deleting a rule == | == Deleting a rule == | ||
- | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be edited is stored. Select the rule and click on the DELETE button [[File:MetisSmartModelingDeleteButton.PNG|link=]]. This opens a small window requesting to confirm the deletion of the selected rule. Once confirmed it will be definitively deleted from the selected group of rules. | + | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. On the left, in the “Groups of rules” drop-down list, select the appropriate group where the rule to be edited is stored. Select the rule and click on the DELETE button [[File:MetisSmartModelingDeleteButton.PNG|link=]]. This opens a small window requesting to confirm the deletion of the selected rule. Once confirmed it will be definitively deleted from the selected [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]]. |
{{Note | {{Note | ||
- | | When the same rule is used in more then one group of rules, Metis Smart Modeling will open a window showing a list of all groups in which the rule is linked. It is then possible to either delete the rule form all groups or select the group form which it should be deleted. | + | | When the same rule is used in more then one [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]], Metis Smart Modeling will open a window showing a list of all groups in which the rule is linked. It is then possible to either delete the rule form all groups or select the group form which it should be deleted. |
Line 1,123: | Line 1,123: | ||
{{Warning | {{Warning | ||
- | | Extra care should be taken when deleting a rule which produces an output which will afterwards be used as an input for another rule in a group of rules following the current one. This will result in wrong results at the end of the execution scheme. | + | | Extra care should be taken when deleting a rule which produces an output which will afterwards be used as an input for another rule in a [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] following the current one. This will result in wrong results at the end of the execution scheme. |
}} | }} |