Shadow

System Dynamics element.

Shadow is a copy of a system dynamics variable (it can be either flow, stock, or dynamic variable). 

Shadows are typically used in the following cases:


Figure 1. Ugly links between variables of two subdiagrams. No shadows are used


Figure 2. Shadows make diagrams pretty looking

Figure 3. Shadows of housesExport and householdsToHouseRatio are added in the stock and flow diagram while the original variables exposed to the object's icon

Creating a shadow

AnyLogic supports two alternative ways of creating shadows.

 To create a shadow in the required place of the diagram
  1. Drag the  Shadow  element from the  System Dynamics palette onto the graphical diagram of agent.
  2. You will see the dialog box New Shadow appeared. Here you should choose the variable, the shadow of which you want to create. To select the variable, double-click it in the list. 
  1. Finally, you will see a shadow of the original variable appeared on the diagram, right in the place where you dragged the Shadow element.
 To create a shadow of the particular variable at once
  1. Right-click (Mac OS: Ctrl+click) the variable and choose  Create Shadow from the popup menu. 
  1. You will see a shadow of the original variable appeared aside. Now you can drag it to the place where you want to place the shadow. 

Discerning shadows from original variables

There are several ways to discern shadows from the original variables:
  1. Names of shadows are put into < > symbols.
  1. The label (Shadow) follows the variable type name in the top line of the Properties view:
  1. By default shadows are displayed with grey icons, whereas original variables - with blue ones. However, changing the color of a variable once sets this new color for either the variable and all its shadows so they are no more distinguishable by color.


Related topics

 System Dynamics modeling

 Stocks

 Flows

 Dynamic variables