libs/core/src/lib/api-communication/model/internal/dataset.ts
Properties |
|
constructor(id: string, url: string, label: string, uom: string, platform: HelgolandPlatform, firstValue: FirstLastValue, lastValue: FirstLastValue, referenceValues: ReferenceValue[], renderingHints: RenderingHints, parameters: ParameterConstellation)
|
|||||||||||||||||||||||||||||||||
Parameters :
|
Public firstValue |
Type : FirstLastValue
|
Public id |
Type : string
|
Public label |
Type : string
|
Public lastValue |
Type : FirstLastValue
|
Public parameters |
Type : ParameterConstellation
|
Public platform |
Type : HelgolandPlatform
|
Public referenceValues |
Type : ReferenceValue[]
|
Public renderingHints |
Type : RenderingHints
|
Public uom |
Type : string
|
Public url |
Type : string
|
Public id |
Type : string
|
Inherited from
HelgolandDataset
|
Defined in
HelgolandDataset:22
|
Public internalId |
Type : string
|
Inherited from
HelgolandDataset
|
Defined in
HelgolandDataset:19
|
Public label |
Type : string
|
Inherited from
HelgolandDataset
|
Defined in
HelgolandDataset:24
|
Public url |
Type : string
|
Inherited from
HelgolandDataset
|
Defined in
HelgolandDataset:23
|
import { InternalIdHandler } from '../../../dataset-api/internal-id-handler.service';
import {
DatasetParameterConstellation,
FirstLastValue,
ParameterConstellation,
ReferenceValue,
RenderingHints,
StatusInterval,
} from './../../../model/dataset-api/dataset';
import { HelgolandPlatform } from './platform';
export enum DatasetType {
Timeseries = 'timeseries',
Trajectory = 'trajectory',
Profile = 'profile'
}
export class HelgolandDataset {
public internalId: string;
constructor(
public id: string,
public url: string,
public label: string
) {
this.internalId = new InternalIdHandler().createInternalId(url, id);
}
}
export class HelgolandTimeseries extends HelgolandDataset {
constructor(
public id: string,
public url: string,
public label: string,
public uom: string,
public platform: HelgolandPlatform,
public firstValue: FirstLastValue,
public lastValue: FirstLastValue,
public referenceValues: ReferenceValue[],
public renderingHints: RenderingHints,
public parameters: ParameterConstellation,
) {
super(id, url, label);
}
}
export class HelgolandTrajectory extends HelgolandDataset {
constructor(
public id: string,
public url: string,
public label: string,
public uom: string,
public firstValue: FirstLastValue,
public lastValue: FirstLastValue,
public parameters: DatasetParameterConstellation,
) {
super(id, url, label);
}
}
export class HelgolandProfile extends HelgolandDataset {
constructor(
public id: string,
public url: string,
public label: string,
public uom: string,
public isMobile: boolean,
public firstValue: FirstLastValue,
public lastValue: FirstLastValue,
public parameters: DatasetParameterConstellation,
) {
super(id, url, label);
}
}
export interface DatasetExtras {
license?: string;
statusIntervals?: StatusInterval[];
}
export interface DatasetFilter {
phenomenon?: string;
category?: string;
procedure?: string;
feature?: string;
offering?: string;
service?: string;
expanded?: boolean;
lang?: string;
type?: DatasetType;
}