@cbevins/variant
v0.1.1
Published
Variant input filters, input validators, and output decorators
Downloads
4
Readme
cbevins/variant
A Variable is an object with a unique name, a value, and a reference to a Variant type. The Variant type provides the Variable with:
- value input text filtering,
- value input text transformation into the Variant's native storage type,
- native value validation,
- native value transformation into other units-of-measure or text representation,
- decoration of the displayed output value (with units-of-measure or other prefixes or suffixes).
Many Variables may share the same Variant. In fire behavior modeling, for example, many spread rate variables share the FireSpreadRate Variant, which is derived from the Quantity Variant.