A Quantity Kind is any observable property that can be measured and quantified numerically (http://qudt.org). Example quantity kinds are "Length", "Time", "Mass", ...

QuantityKinds can be subtypes of other kinds. For example, Length can be seen as a generalization of Distance, Height or Altitude. Vice versa is Distance a subtype of Length.

QuantityKinds cannot be instantiated, but must be retrieved from the QuantityKindRegistry.

Hierarchy

  • QuantityKind

Constructors

Accessors

  • get baseQuantityKind(): QuantityKind
  • The base QuantityKind is the topmost supertype of this QuantityKind. For a base QuantityKind, this property refers to itself.

    Returns QuantityKind

  • get generalization(): null | QuantityKind
    • The generalization of this QuantityKind is the immediate supertype of this QuantityKind. In case of a base QuantityKind the generalization is null.

    Returns null | QuantityKind

  • get name(): string
  • The name of this QuantityKind. This name is unique and identifies the QuantityKind in the QuantityKindRegistry.

    Returns string

Methods

  • Checks wether the passed quantityKind is a supertype of this QuantityKind.

    Parameters

    • quantityKind: QuantityKind

      the QuantityKind that may or may not be a supertype of this QuantityKind

    Returns boolean

    true if the passed quantity is a supertype of this QuantityKind, false otherwise.