1 import {ITreeNode} from "angular-tree-component/dist/defs/api";
2 import * as _ from 'lodash';
4 export class TypeNodeInformation {
6 existingMappingCounterName: string;
8 constructor(node: ITreeNode) {
10 switch (node.data.type) {
12 this.hierarchyName = 'vnfs';
13 this.existingMappingCounterName = 'existingVNFCounterMap';
17 this.hierarchyName = 'vnfGroups';
18 this.existingMappingCounterName = 'existingVnfGroupCounterMap';
22 this.hierarchyName = 'networks';
23 this.existingMappingCounterName = 'existingNetworksCounterMap';
27 this.hierarchyName = 'networks';
28 this.existingMappingCounterName = 'existingNetworksCounterMap';
32 console.error("Node type is not recognize");