blob: 26f441ceb3b2c332b9a4c6fc25d3f8b0cdb8997d [file] [log] [blame]
Ittay Sternf7926712019-07-07 19:23:03 +03001import {Level1Model} from "./nodeModel";
2import {TreeNodeModel} from "./treeNodeModel";
3import {PnfInstance} from "./pnfInstance";
4
5export class PnfTreeNode extends TreeNodeModel{
6 pnfStoreKey : string;
7 typeName: string;
8 menuActions: { [p: string]: { method: Function; visible: Function; enable: Function } };
9 isFailed: boolean;
10 statusMessage?: string;
11
12 constructor(instance: PnfInstance, pnfModel: Level1Model, pnfStoreKey : string){
13 super(instance, pnfModel);
14 this.type = pnfModel.type;
15 this.pnfStoreKey = pnfStoreKey;
16
17 this.name = instance.instanceName? instance.instanceName: !pnfModel.isEcompGeneratedNaming ? pnfModel.modelCustomizationName : '<Automatically Assigned>';
18 this.modelName = pnfModel.modelCustomizationName;
19 this.isEcompGeneratedNaming = pnfModel.isEcompGeneratedNaming;
20 }
21}