Difference between revisions of "Dataflows"

From Developer Documents
Jump to navigation Jump to search
m
Line 55: Line 55:
  
 
==Links==
 
==Links==
* [[Task_protocol]]
+
* [[Task protocol]]

Revision as of 23:45, 14 October 2010

The data model of solvers is always arbitratry, sometimes proprietary and almost never generic. In simantics environment, the data is exposed in the format of Datasource Contract by implementing Accessor Interface. It gives the access means to read, browse and monitor the data models.

The values of variables can be monitored in Simantics Workbench desktop client. Values are followed in a property viewer component on the left-hand side of the workspace. There are monitor objects on a diagram, that follow values of variables at real-time as the experiment progresses. Charts visualizations draw the trends of the variables, from their collected samples, at real-time or after experiment.

An experiment may be recorded by collecting samples. A sampling may contain all values of all variables, a sub-set of values, and/or a sub-set of variables. SamplingConfiguration defines how samples are collected from the variables during the experiment. The result is stored in the format of History Contract.

Use Cases

UC 1: Run an local experiment

The dataflows in a local experiment

Experiment is executed locally in the Simantics Workbench application. Experiment controller exposes two features: datasource and history. See Task_protocol for more details.

The simulation time data is in Datasource Contract format. Values are viewed in property viewer, monitors on diagram, and in a visualizing charts.

Experiment Controller also records the data into time series. The format of the time series is defined in History Contract. Subscripion Configuration desribes what variables are recorded and how sampled.

Chart configuration includes Expression Configuration.

UC 2: Run a remote experiment

The dataflows in a remote experiment

Experiment is executed in a remote process called Task Manager. The values are accessed using Wire protocol and cached in Simantics Workbench application. Values are cached in memory before used by higher level UI components. Partial Accessor implementation provides caching features.

UC 3: Persist an experiment result

Put the experiment result into an archive

Experiment is persisted into a local archive. Local archive stores the experiment as files in the workspace folder of Simantics Workbench application.

Data structure of the archive is in Repository Contract format. Basicly, it consists of folders and values nodes. Value node contains a recording of an experiment. The folder hierarchy of the archive is organized by the end user. An experiment recording is stored in a single file. The file contains a single Sampling value.

UC 4: Visualize a recorded experiment

Visualize a persisted experiment

Chart component visualizes the data from a memory cache. It renders data only in History Contract format.

Chart configuration is source neutral. Same configuration can be used to render both cached real-time data and stored history data.

Links