Metis Smart Modeling - Models
From Metis Documentation
(→What is a model?) |
(→How does a model work?) |
||
Line 38: | Line 38: | ||
- | Now that the ground work of the model concept is laid down, it is necessary to understand a bit how such a model works in the Metis environment. As described in figure [[:File:Model_Exec_1.png|Model execution overview]], outside of the [[Metis_Smart_Modeling_-_Masks|masks]], a [[Metis_Smart_Modeling_- | + | Now that the ground work of the model concept is laid down, it is necessary to understand a bit how such a model works in the Metis environment. As described in figure [[:File:Model_Exec_1.png|Model execution overview]], outside of the [[Metis_Smart_Modeling_-_Masks|masks]], a [[Metis_Smart_Modeling_-_Models|model]] is built on specific objects. Each model includes at least one “[[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]]”, which is a container for individual [[Metis_Smart_Modeling_-_Rules|rules]]. Those [[Metis_Smart_Modeling_-_Rules|rules]] are the logic part of the models. Each [[Metis_Smart_Modeling_-_Rules|rule]] uses input values ([[Metis_Smart_Modeling_-_Variables|variables]], [[Metis_Smart_Modeling_-_Attributes|attributes]], positions) coming from the [[Metis_Smart_Modeling_-_Masks|masks]], default or calculated information to process a logic “formula”. A [[Metis_Smart_Modeling_-_Group_of_Rules|Group of rules]] can include as many [[Metis_Smart_Modeling_-_Rules|rules]] as necessary, with the only constrain that the result of a given [[Metis_Smart_Modeling_-_Rules|rule]] will only be available in the next [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] in the process. As described in figure [[:File:Model_Exec_2.png|Group of rules execution overview]], a [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]] feeds on input values which are instantiated before its execution. Once inside, all [[Metis_Smart_Modeling_-_Rules|rules]] will use those values to process the formulas. When all [[Metis_Smart_Modeling_-_Rules|rules]] are processed, the resulting [[Metis_Smart_Modeling_-_Variables|variables]] and/or material positions are prepared for the next [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]].Before starting the execution of the next [[Metis_Smart_Modeling_-_Group_of_Rules|group of rules]], the engine instantiates the new input values and lets the various [[Metis_Smart_Modeling_-_Rules|rules]] included in the group feed on them. |
[[Image:IMG_BLANK.png|500x226px|link=]][[Image:Model_Exec_1.png|500x226px|link=]] [[Image:Model_Exec_2.png|500x226px|link=]] | [[Image:IMG_BLANK.png|500x226px|link=]][[Image:Model_Exec_1.png|500x226px|link=]] [[Image:Model_Exec_2.png|500x226px|link=]] |