UnitConvertor.addConversionRule

Adds a conversion rule to convertor

More...
class UnitConvertor
void
addConversionRule

Parameters

rule ConversionRule

rule to add

Detailed Description

This function doesn't convert an alas for a unit to an actual unit name, so make sure to pass here an actual unit name

Throws

Exception if a passed rule has existing family with different base unit, existing unit with different family or existing unit with a different family or base unit

Meta