Skip to content

feat(quantity): create @archetypes/quantity module #3

@gregswindle

Description

@gregswindle

briefcase Feature Request

1. User story

As an API consumer,
I need to consistently compare and calculate amounts of things
In order to express quantitative relationships.

2. Acceptance criteria

We'll be done when we can represent quantities with a:

  • 1. Metric, which represents a standard of measurement for quantities
  • 2. Unit, which represents a type of Metric that is part of a SystemOfUnits
  • 3. SystemOfUnits, which represents a set of related Units defined by a standard such as the International System of Units (SI)
  • 4. DerivedUnit, which represents a combination of one or more base Units according to a specific equation
  • 5. DerivedUnitTerm, which represents a term (i.e., a single Unit and its power, e.g., s–1) within a DerivedUnit
  • 6. Quantity, which specifies an amount that is measured in some Metric, and uses
  • 6.1. Arithmetic operations (add, subtract, multiply, and divide)
  • 6.2. Comparison operations (equalTo, greaterThan, lessThan)
  • 6.3. RoundingPolicy to define the mathematical semantics of the rounding operation
  • 6.4. RoundingStrategy to represent the type of rounding to be applied
  • 7. StandardConversion, which defines a conversionFactor that can be used to convert a Quantity in a source Unit to a Quantity in a target Unit
  • 8. UnitConverter, which represents the conversion process
  • 9. SIBaseUnit, which represents one of the base units defined in SI
  • 9.1. Meter: SI unit of length
  • 9.2. Kilogram: SI unit of mass
  • 9.3. Second: SI unit of time
  • 9.4. Ampere: SI unit of electric current
  • 9.5. Kelvin: SI unit of temperature
  • 9.6. Mole: SI unit of amount of substance
  • 9.7. Candela: SI unit of luminous intensity

3. Notes

⌦ Provide additional information here, if you need to.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions