Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 1 | import {Level1Model} from "./nodeModel"; |
| 2 | import {TreeNodeModel} from "./treeNodeModel"; |
| 3 | import {PnfInstance} from "./pnfInstance"; |
| 4 | |
| 5 | export 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 | } |