summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/drawingBoard/service-planning/component-info/component-info-model.ts
blob: 4c5bf674708b16503ecc52e78efdfa2fad36e324 (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
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"
}