Measure Properties - aabherve/measure-smm-measure-api GitHub Wiki
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());