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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
import {ILevelNodeInfo} from "../basic.model.info";
import {ComponentInfoType} from "../../../component-info/component-info-model";
import {ModelInformationItem} from "../../../../../shared/components/model-information/model-information.component";
import {ITreeNode} from "angular-tree-component/dist/defs/api";
import {AvailableNodeIcons} from "../../../available-models-tree/available-models-tree.service";
import {PnfInstance} from "app/shared/models/pnfInstance";
import {PNFModel} from "../../../../../shared/models/pnfModel";
import {PnfTreeNode} from "../../../../../shared/models/pnfTreeNode";
export class PnfModelInfo implements ILevelNodeInfo{
constructor(){}
name: string = 'pnfs';
type: string ='PNF';
typeName: string = 'PNF';
childNames: string[];
componentInfoType = ComponentInfoType.PNF;
createInstanceTreeNode = (instance: PnfInstance, model: PNFModel, parentModel: any, storeKey: string): PnfTreeNode => null;
getInfo(model, instance): ModelInformationItem[] {
return [];
}
getMenuAction(node: ITreeNode, serviceModelId: string): { [methodName: string]: { method: Function; visible: Function; enable: Function } } {
return {};
}
getModel = (pnfModelId: string, instance: PnfInstance, serviceHierarchy): PNFModel => {
const originalModelName = instance.originalName ? instance.originalName : pnfModelId;
return new PNFModel(serviceHierarchy[this.name][originalModelName]);
};
getNextLevelObject(): any { return null; }
getNodeCount(node: ITreeNode, serviceModelId: string): number {
return 0;
}
getNodePosition(instance): number {return 0; }
getTooltip = (): string => 'PNF';
getType = (): string => 'pnf';
hasMissingData(instance, dynamicInputs: any, isEcompGeneratedNaming: boolean): boolean {
return false;
}
isEcompGeneratedNaming(currentModel): boolean {
return false;
}
onClickAdd(node: ITreeNode, serviceModelId: string): void {
}
showNodeIcons(node: ITreeNode, serviceModelId: string): AvailableNodeIcons {
return null;
}
updateDynamicInputsDataFromModel = (currentModel): any => [];
updatePosition(that, node, instanceId): void {
}
}
|