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 "STEM Expression Language"

(Contextual Content Assist)
(Contextual Content Assist)
Line 16: Line 16:
  
 
==== Contextual Content Assist ====
 
==== Contextual Content Assist ====
The content assist feature provides contextual suggestions to assist a user authoring expressions.  This includes partial-completion of variables, functions, and operators.
+
The content assist feature provides contextual suggestions to assist a user authoring expressions.  This includes partial-completion of variables, functions, and operators.  In the future, complete documentation will also be available from the content assist window.
  
Content assist is available at all times while editing an expression.  To access the content assist, simply type '''Control-<Space>'''
+
[[Image:STEM ExpressionEditor ContentAssist.png]]
 +
 
 +
Content assist is available at all times while editing an expression.  To access the content assist prompt, simply type '''Control-<Space>'''.  You can continue typing to further filter available syntax/semantic options.
  
 
==== Errors ====
 
==== Errors ====

Revision as of 16:54, 19 June 2013

About STEM Expressions

Expression Editor

The Visual Editor's Expression Editor is a simple tool to enter the equations that describe the movement of a population between two compartments for each region for each step of the simulation. The transition value - the delta - as calculated by the equation entered represents a balanced decrease from the source compartment equal to the increase in the target compartment.

Select a Transition

To select a transition, a user may either:

  • Select from the Visual Editor's canvas using the Chooser Tool
  • Select from the Transition drop-down menu

The Expression

Delta

The last statement in the expression editor must start with the delta keyword/operator. This is the value used to compute the movement from source to target compartments.

Contextual Content Assist

The content assist feature provides contextual suggestions to assist a user authoring expressions. This includes partial-completion of variables, functions, and operators. In the future, complete documentation will also be available from the content assist window.

STEM ExpressionEditor ContentAssist.png

Content assist is available at all times while editing an expression. To access the content assist prompt, simply type Control-<Space>. You can continue typing to further filter available syntax/semantic options.

Errors

Select Incidences

STEM ExpressionEditor ForIncidence.png

For internal and reporting purposes, the STEM simulation engine needs to know which transitions represent an increase in disease incidence. The (positive) delta value of the transition will be added to each incidence total after each step.

A transition can account to zero or more incidences that are included in a disease. Under For Incidence, check the box(es) next to the incidence name for a given transition.

Back to the top