File

projects/dvl-fw-core/src/lib/interfaces/data-variable.ts

Index

Properties
Methods

Methods

toJSON
toJSON()
Returns : any

Properties

dataType
dataType: DataType | string
Type : DataType | string
id
id: string
Type : string
label
label: string
Type : string
recordSet
recordSet: RecordSet
Type : RecordSet
scaleType
scaleType: ScaleType | string
Type : ScaleType | string
import { RecordSet } from './record-set';

export enum DataType {
  STRING = 'string', // 'always' nominal
  NUMBER = 'number', // start with 'interval'
  INTEGER = 'integer', // start with 'interval' or 'ratio'
  BOOLEAN = 'boolean', // 'pretty much' nominal
  DATE = 'date', // typically interval, but maybe ratio if based on observed zero start time
  DATETIME = 'datetime', // typically interval, but maybe ratio if based on observed zero start time
  UNKNOWN = 'unknown'
}

export enum ScaleType {
  NOMINAL = 'nominal',
  ORDINAL = 'ordinal',
  INTERVAL = 'interval',
  RATIO = 'ratio',
  UNKNOWN = 'unknown'
}

export interface DataVariable {
  id: string;
  label: string;
  dataType: DataType | string;
  scaleType: ScaleType | string;
  recordSet: RecordSet;
  toJSON(): any;
}

result-matching ""

    No results matching ""