aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/drawingBoard/service-planning/component-info/component-info-model.ts
blob: d06dfbe9ac7493030efa5edd9ada5fcacaa0205c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {ModelInformationItem} from "../../../shared/components/model-information/model-information.component";

export class ComponentInfoModel {
  type: ComponentInfoType;
  modelInfoItems: ModelInformationItem[];
  additionalInfoItems: ModelInformationItem[];
  title: string;


  constructor(type: ComponentInfoType, modelInfoItems: ModelInformationItem[], additionalInfoItems: ModelInformationItem[], isInstance:boolean = true) {
    this.type = type;
    this.modelInfoItems = modelInfoItems;
    this.additionalInfoItems = additionalInfoItems;
    this.title = this.type + (isInstance ? " Instance" : "");
  }
}


export enum ComponentInfoType {
  SERVICE = "Service",
  VNF = "VNF",
  NETWORK = "Network",
  VFMODULE = "VFModule",
  VNFGROUP = "Group",
  VNFMEMBER = "VNF",
  CONFIGURATION = "Configuration",
  COLLECTION_RESOURCE  = "Collection Resource",
  VRF = "VRF",
  PNF = "PNF",
  VPN = "VPN",
  NCF = "Network Collection Function"
}