Skip to content

Measure Properties

Antonin Abherve edited this page Feb 16, 2017 · 2 revisions

Measure properties allow to parametrise the execution of an SMM Measure. When a measure is registred on Measure Platform, this propertys are defined during during the creation of measure instance.

Property Definition

Propertys are defined in the MetaData.xml file. The are identify by her name.

    <scopeProperties defaultValue="0" name="MinRange">
        <description>Min range of RandomGenerator</description>
    </scopeProperties>
    <scopeProperties defaultValue="100" name="MaxRange">
        <description>Max range of RandomGenerator</description>
    </scopeProperties>

Usage of properties in Measure Implementation

  • Retrive property
String maxRange = getProperty("MaxRange");
  • Update Property : a measure can update the value of a property. The next executionof this measure will accexx to this updated value.
 getProperties().put("LastUpdate",new Long(new Date().getTime()).toString());
Clone this wiki locally