User Tools

Site Tools


concepts:views

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
concepts:views [2009/10/27 00:33]
shona.weldon
concepts:views [2009/11/05 13:41]
shona.weldon
Line 1: Line 1:
 ====== Views ====== ====== Views ======
-A dynamic and flexibile ​way to extend a model, views are a powerful tool in the whatIf? suite. ​+A dynamic and flexible ​way to extend a model, views are a powerful tool in the whatIf? suite. ​
  
-Models, especially once populated with data, are fairly ​ridgid. Modifying ​working model requires changing the design and reloading data.  Views provide a mechanism for extending the model either through ​preprocessing ​input data or additional analysis of output data without changing ​the model itself.+Models, especially once populated with data, are fairly ​rigid. Modifying ​any working model requires changing the design and reloading data.  Views provide a mechanism for extending the model either through ​preprocessed ​input dataadditional analysis of output data and even implementing feedback loops in the model's logic.
  
-Here's one example of using a view to extend ​a model by changing input data:+==== Example 1: Extend ​a model by changing input data ====
  
-Suppose you had a model which had a control variable ​setting up the market share for new vehicles over time.  There are many ways to create that data and one must have been used to load the original model. ​ If new a new behavioural ​model was developed to suggestHowever with a view a new behavior ​could be calculated ​as an optimized ​+Suppose you had a model which had a control variable ​specifying exogenously ​the market share for new vehicles over time.  There are many ways to create that data and one must have been used to load the original model. ​ If you found a new algorithm for determining that market share based on something inside the model, something totally external or some mix of these, then a view could be written to implement this algorithm and feed it into the model as the new market share. ​ Essentially you have extended the model'​s scope but have taken on the work of actually modifying the model. ​ Of course the model can be changed later to encapsulate the new logic in the model itself but it doesn'​t need to.
  
-The model is rigid structure ​views add a layer of flexibility to that...+ 
 +==== Example 2: Implementing feedback ==== 
 + 
 +Supp 
 + 
 + 
 +Part of the design process ​is deciding what should be part of the rigid structure of the model and what should be dynamic and implemented by views.
  
 In the whatIf? platform views are the method used for interacting dynamically with the model. ​ Views are used to import and export data, to mediate interaction with the model, do analysis and display it to the user, do iterative runs of the model to converge on parameter settings and every combination of these. In the whatIf? platform views are the method used for interacting dynamically with the model. ​ Views are used to import and export data, to mediate interaction with the model, do analysis and display it to the user, do iterative runs of the model to converge on parameter settings and every combination of these.
concepts/views.txt · Last modified: 2010/01/26 12:52 by shona.weldon