(.js)
laraImport("antarex.margot.dse.metric.MargotMetric");
(.lara)
import antarex.margot.dse.metric.MargotMetric;
Classes:
new MargotMetric(name, unit)
Class that represents a metric used by mARGOt. It has a name and a unit.
For instance, it can represent time in us.
addInfo(key, value)
Adds arbitrary information to this metric using a <key, value> pair.
convertUnit(value, unit, unitHasBaseName)
Converts a value in a provided unit to the unit of this metric.
getName()
Returns the name of this metric.
getUnit()
Returns the unit of this metric.
getUnitName()
Returns the name of the unit of this metric.
setUnit(unit)
Sets the unit of this metric.