@qudtlib/core
Version:
Data model for QUDTLib
47 lines (46 loc) • 2.06 kB
TypeScript
import { SupportsEquals } from "./baseTypes";
/**
* Represents the QUDT dimension vector and allows for converting between a dimension vector IRI and
* the numeric values, as well as for some manipulations.
*
* <p>Note that the last value, the 'D' dimension is special: it is only an indicator that the
* dimension vector represents a ratio (causing all other dimensions to cancel each other out). It
* never changes by multiplication, and its value is only 1 iff all other dimensions are 0.
*/
export declare class DimensionVector implements SupportsEquals<DimensionVector> {
private static readonly DIMENSIONS;
private static readonly FORMAT;
private static readonly PT;
static readonly DIMENSIONLESS: DimensionVector;
private static readonly INDEX_AMOUNT_OF_SUBSTANCE;
private static readonly INDEX_ELECTRIC_CURRENT;
private static readonly INDEX_LENGTH;
private static readonly INDEX_LUMINOUS_INTENSITY;
private static readonly INDEX_MASS;
private static readonly INDEX_TEMPERATURE;
private static readonly INDEX_TIME;
private readonly dimensionVectorIri;
private readonly values;
static ofRequired(dimensionVectorIri: string | number[]): DimensionVector;
static of(dimensionValues: string | number[]): DimensionVector | undefined;
constructor(dimensionVector: string | Array<number>);
private parseDimValues;
private generateDimensionVectorIri;
private static noNegativeZero;
private static iriFormat;
isDimensionless(): boolean;
getDimensionVectorIri(): string;
getValues(): number[];
getAmountOfSubstanceExponent(): number;
getElectricCurrentExponent(): number;
getLenghExponent(): number;
getLuminousIntensityExponent(): number;
getMassExponent(): number;
getTemperatureExponent(): number;
getTimeExponent(): number;
multiply(by: number): DimensionVector;
private static setRatio;
combine(other: DimensionVector): DimensionVector;
equals(o: unknown): boolean;
}
//# sourceMappingURL=dimensionVector.d.ts.map