summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/networkTreeNode.ts
blob: d09d5e4c5639e6fed6085825ba6dde222e463955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {NetworkInstance} from "./networkInstance";
import {TreeNodeModel} from "./treeNodeModel";
import {Level1Model} from "./nodeModel";



export class NetworkTreeNode extends TreeNodeModel {
  networkStoreKey : string;
  typeName: string;
  menuActions: { [p: string]: { method: Function; visible: Function; enable: Function } };
  isFailed: boolean;
  statusMessage?: string;

  constructor(instance: NetworkInstance, networkModel: Level1Model, networkStoreKey : string){
    super(instance, networkModel);
    this.name = instance.instanceName? instance.instanceName: !networkModel.isEcompGeneratedNaming ? networkModel.modelCustomizationName : '<Automatically Assigned>';
    this.modelName = networkModel.modelCustomizationName;
    this.type = networkModel.type;
    this.isEcompGeneratedNaming = networkModel.isEcompGeneratedNaming;
    this.networkStoreKey = networkStoreKey;
  }
}