Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "How scenarios are structured"

(Template for a Basic Scenario with a Human Disease)
(Scenario Structure)
Line 20: Line 20:
  
 
[[Image: STEM_Nesting_Models.png|left|frame|Figure 1 basic scenario structure]]
 
[[Image: STEM_Nesting_Models.png|left|frame|Figure 1 basic scenario structure]]
 +
 +
<br/>
  
 
==Download the Templates==
 
==Download the Templates==

Revision as of 07:05, 19 August 2012

STEM TOP BAR.gif


back to STEM Contents Page


Scenario Structure

At the beginning of a simulation, STEM allows decorators such as population models, population initializers and disease models to initialize themselves. For instance, when a disease model is initialized, it creates the disease model labels necessary to track the state of the disese in a population. A disease model depends on the population model labels created by a population model to be able to create the disease model labels. Furthermore, a population model depends on the existance of static population labels, created either by a population initializers or by dragging population data into your model from the STEM library.

Consequently, the order of initialization becomes important, and the order is controlled by nesting models inside models. Decorators that are deeper in the model tree are initialized before decorators higher up in the tree. See the figure below for an example. Deepest in the tree is a population initializer that creates the static population labels needed by the demographic population model one level up. The demographic population model subdivides the population into subgroups needed by the disease model in the level above.

In summary, the order is population initializers before population models, population models before disease models, and disease models before infectors/inoculators.


Figure 1 basic scenario structure


Download the Templates

This tutorial shows users how to compose a basic disease model scenario and a basic foodborne disease scenario using a project containing prepared templates. Please begin by downloading the template scenario project from the download page unzip it and import it into your workspace.

Template for a Basic Scenario with a Human Disease

Figure 2 the nexted models form a basic scenario template

After you successfully download, extract, and import the scenario (archive file Templates.zip), open the 'Templates project' in the designer perspective. Double click on the Disease Model scenario and you should see a series of empty nested project (see figure 2 above).

ScenarioTutorial2.png

ScenarioTutorial3.png

ScenarioTutorial4.png

ScenarioTutorial5.png

ScenarioTutorial6.png

ScenarioTutorial7.png

ScenarioTutorial8.png

ScenarioTutorial9.png

Template for a Food Borne Disease Scenario

ScenarioTutorial10.png

ScenarioTutorial11.png

ScenarioTutorial12.png

ScenarioTutorial13.png

Back to the top