Expression Search Example Three:  scenario hierarchy with "Package of packages"

See also: Understanding Expression Inheritance, Example One, Example Two, Example Four

Now, building on example two,  let's imagine that your transportation scenario is itself based on a package of 3 additional scenarios: mitigation measures for cars, buses and rail. In other words, the transport package is itself a package of packages  You can see how this scenario structure would be entered in LEAP's Scenario Manager in Figure 3a.  Notice in the Scenario tree that the Mitigation scenario inherits from the Transport, Buildings and Industry scenarios, and that the Transport scenario inherits from the cars, buses and rail scenarios.


Figure 3a: A Scenario Hierarchy with a Package of  Packages in LEAP's Scenario Manager

In this situation the expression search process is as follows.  First, LEAP looks in the active scenario, in this case Mitigation (STEP 1). Next LEAP looks in each of the additional scenarios  (industry, buildings and transport), which are listed in the First Inherits From box of Manage Scenarios screen (just as described in example 2).  This is STEP 2  Next, LEAP looks through each of these additional scenarios to see if they themselves are based on other scenarios (i.e. whether they have scenarios listed in their First Inherits From box).  In this example, the Transport scenario is itself a package of three scenarios describing mitigation measures for cars, buses and rail (STEP 3).   If no non blank expression is found, LEAP then walks up the main scenario tree, first to the Baseline scenario expression and then to Current Accounts (STEP 4). Ultimately, if no expression is found then the default value for the variable is used.  

The full expression search order is as follows: Mitigation, Industry, Buildings, Transport, Cars, Buses, Rail, Baseline, Current Accounts, Default Value.

Figure 3b: Search Process for a Variable in the Mitigation Scenario: Package of Packages

Search Key (for more detail, see Understanding Expression Inheritance):