Embedding a Model as a Distribution

Starting version 1.7 the ability to embed models in other models as a distribution is possible.

See the example: Kanban\1-Columns\4-Embedded Model as Column file. 

The process of embedding a model has two parts. 

1. Create a distribution embedding the model

        <distribution name="Embed2" count="10" shape="model" path="\98-Kanban Examples\1 - Columns\5 - Embedded Model.simml" />


       <distribution name="Embed1" count="10" shape="model" path="\98-Kanban Examples\1 - Columns\5 - Embedded Model.simml" parameters="Designers,4,Developers,4" />

2. Use the distribution by name anywhere a distribution can be assigned. For example: column cycle times, scrum iteration velocity.

               <column id="1"  estimateDistribution="Embed1"  wipLimit="2">Investigate</column>
               <column id="2"  estimateDistribution="Embed2" wipLimit="4" displayWidth="2">Development</column>

Distribution Details::

shape="model" - this specifies that the distribution is going to reference another model

:path="..." - this specified the model to load and execute. It can either be a fully qualified path, or a path referential path from the location where the executine is running.

parameters="[variable name 1],[variable value1],[variable name2],[variable vale2],.." - a list of name and value pairs in the target model that are defined parameters. The default values can be overridden at simulation time by setting these values in the calling model.. For the above examples showing is step 1, the target model has parameters defined like this -

   <?parameter name="Designers" value="1" ?>
   <?parameter name="Developers" value="2" ?>

These parameters will be assigned values of 4 rather than their defaults.


Please sign in to leave a comment.