{"id":496,"date":"2024-03-02T10:42:23","date_gmt":"2024-03-02T10:42:23","guid":{"rendered":"https:\/\/modelingperspectives.com\/?page_id=496"},"modified":"2024-04-17T12:58:42","modified_gmt":"2024-04-17T12:58:42","slug":"calculated-properties-and-functions","status":"publish","type":"page","link":"https:\/\/modelingperspectives.com\/index.php\/calculated-properties-and-functions\/","title":{"rendered":"Calculated Properties and Functions"},"content":{"rendered":"<p>Of course it is sometimes required to calculate. For instance adding two Number Properties to calculate a third. In the Perspectives Graphical Language calculation is modelled as follows. Here is the Role Diagram of an Exam Paper on which a Student has a Perspective:<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"224\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-19.png\" alt=\"\" class=\"wp-image-517\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-19.png 529w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-19-300x127.png 300w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/figure><p>The Exam Paper total Mark is a Calculated Property as in shown by the diamond icon. When this Calculated Property is double clicked the Calculated Property Diagram opens. This is the third type of Diagram besides the Context Diagram and the Role Diagram:<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"161\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-15.png\" alt=\"\" class=\"wp-image-513\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-15.png 551w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-15-300x88.png 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/figure><p class=\"has-text-align-center\">Initially only the Calculated Property is in the Diagram. Next other Properties that will be part of the calculation can be added to the Diagram. These Source Properties are added from the Project Browser:<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"198\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-25.png\" alt=\"\" class=\"wp-image-525\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-25.png 639w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-25-300x93.png 300w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-25-600x186.png 600w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/figure><p class=\"has-text-align-center\">The Toolbox of the Calculated Property Diagram only contains two items: Functions and the IN Relation. The Function has one or two inputs and one output. The inputs can be Source Properties or outputs of other Functions. In connectors are used to add inputs and outputs :<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"205\" height=\"76\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-17.png\" alt=\"\" class=\"wp-image-515\"\/><\/figure><p class=\"has-text-align-center\">This is the set of types of Functions that can be chosen:<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"163\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-24.png\" alt=\"\" class=\"wp-image-523\" style=\"width:221px;height:auto\"\/><\/figure><p class=\"has-text-align-center\">The Function and IN relation can be used to construct the calculation for the Exam Paper total Mark. The Add Function has two inputs and one output:<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"194\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-20.png\" alt=\"\" class=\"wp-image-518\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-20.png 645w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-20-300x90.png 300w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-20-600x180.png 600w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/figure><p class=\"has-text-align-center\">This results in the Prototype before the calculation (not saved):<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"273\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-30.png\" alt=\"\" class=\"wp-image-535\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-30.png 514w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-30-300x159.png 300w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure><p class=\"has-text-align-center\">And after the calculation (saved):<\/p><p><\/p><figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"266\" src=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-28.png\" alt=\"\" class=\"wp-image-533\" srcset=\"https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-28.png 497w, https:\/\/modelingperspectives.com\/wp-content\/uploads\/2024\/03\/image-28-300x161.png 300w\" sizes=\"(max-width: 497px) 100vw, 497px\" \/><\/figure><p>The Functions can be concatenated to create complex calculations. In this case outputs of Functions are inputs of other Functions.<\/p>","protected":false},"excerpt":{"rendered":"<p>Of course it is sometimes required to calculate. For instance adding two Number Properties to calculate a third. In the Perspectives Graphical Language calculation is modelled as follows. Here is the Role Diagram of an Exam Paper on which a Student has a Perspective: The Exam Paper total Mark is a Calculated Property as in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-496","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/pages\/496"}],"collection":[{"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":13,"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/pages\/496\/revisions"}],"predecessor-version":[{"id":642,"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/pages\/496\/revisions\/642"}],"wp:attachment":[{"href":"https:\/\/modelingperspectives.com\/index.php\/wp-json\/wp\/v2\/media?parent=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}