Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Implement Measure

Alin Stefanescu edited this page Sep 7, 2017 · 6 revisions

The SMM Measure

A SMM Measure is a small and independent software component which allows retrieving or calculating a measurement. The implementation of a measure is based on a library developed in parallel with the Measure Platform: the “SMMMeasureApi”. We identify two main kind of measures: the Direct Measures and the Derived Measures.

  • A Direct Measure is used to collect data in physical world. This kind of measure can be executed on the platform on the Client Side. To define a Direct Measure, the IDirectMeasure has to be implemented. This interface will be called by the Measure Platform to retrieve the measurements.

  • A Derived Measure is used to define a combined measure which can calculate new measurements using one or more measurements stored on the Measure platform. To define a Derived Measure, the IDerivedMeasure has to be implemented.

In this section, we will describe how to specify, implement and package a new measure which will be deployed on the Measure platform. The Modelio Modeling tool can be used for the specification, implementation and packaging of measures, but it is also possible to implements the measure manually.

Implement an SMM Measure

In SMM, a direct or derived measure definition is associated with an Operation which represents the implementation of the measure. These operations can be expressed in natural language or may contain executable code. In order to be able to collect direct measures and to execute calculated measure, we have to choose a common executable language. For that, we currently support Java.

An SMM Measure is a zip file containing :

  • a jar file : The Java implementation of the measure
  • a lib folder : Java libraries unsed by the measure implementation
  • a MetaData.xml file : Metadata related to the measure

In the following wikipages, we will see how to produce these different artefacts. Please note that if you choose to use Modelio to implement your measures the MetaData.xml file will be automaticly generated from the measure specification model.

Clone this wiki locally