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

Measure Properties

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

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

Property Definition

Properties are defined in the MetaData.xml file. They are identified by their 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 the measure implementation

  • Retrieve property
String maxRange = getProperty("MaxRange");
  • Update Property: a measure can update the value of a property. The next execution of this measure will access the updated value.
 getProperties().put("LastUpdate",new Long(new Date().getTime()).toString());

Clone this wiki locally