Annotations
The handling of model (schema) entities by Insight and certain global settings such as execution modes or unit conversions are configured via annotations to the Mosel model. The following Mosel model extract shows some examples of annotation definitions.
!@insight.manage=input public declarations ! All entities declared here are managed as input !@insight.alias Suppliers !@insight.descr Set of all suppliers SUPP: set of string DEP: set of string !@insight.alias Depots DIST: array(SUPP,DEP) of real !@insight.unit mile end-declarations ! The 'insight.units' or 'insight.execmodes' annotations must be stated as global ! annotations, so not immediately preceding 'declarations' ! Define a unit 'mile' with conversion rules for 'meter' and 'kilometer' (!@insight.units.mile. @name mile @abbreviation mi @conversion.meter.factor=1609.34 @conversion.kilometer.scale=0.621373 !) ! Define an execution mode 'analyzedata' (!@insight.execmodes.analyzedata. @descr Analyzing input data @clearinput false @threads 1 !) case insightgetmode of "analyzedata": do loaddata analyzedata end-do INSIGHT_MODE_LOAD: do loaddata end-do !... ! Handling of other execution modes end-case