From f333557c8bf0a74eb7b88d6294dea2a420b1ec61 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Thu, 18 Feb 2021 10:55:11 +0100 Subject: Update NetworkMap and LinkCalculator Update NetworkMap and LinkCalculator to use the topology-server-v2 API, minior bugfixes for NetworkMap Issue-ID: CCSDK-3172 Signed-off-by: Aijana Schumann Change-Id: Ia5690c5039d7a9431443bc131fe398cc79d08287 --- sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts | 34 +++++++++++++--------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts') diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts b/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts index 79af65377..b9102e871 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts +++ b/sdnr/wt/odlux/apps/networkMapApp/src/model/site.ts @@ -18,26 +18,32 @@ import { link } from "./link"; -export type site = { +export type Site = { id: string, name: string, - address?: string, - heighAGLInMeters?: number, //AboveGroundLevel - antennaHeightAGLInMeters?: number, + address: Address, + heightAmslInMeters?: number, //AboveGroundLevel + antennaHeightAmslInMeters?: number, type?: string, operator: string, - geoLocation:{lon: number, lat: number}, + location:{lon: number, lat: number}, devices: Device[], links: link[] } -export type Device = { - id: string, - type: string, - name: string, - manufacture: string, - owner: string, - status?: string, - port: number[], - simulatorId?: string, +export type Address={ + streetAndNr: string, + city: string, + zipCode: string | null, + country: string +} + +export class Device { + id: string; + type: string; + name: string; + manufacturer: string; + owner: string; + status?: string; + port: number[]; } \ No newline at end of file -- cgit 1.2.3-korg