diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-02-02 18:09:40 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2020-02-03 19:32:49 +0200 |
commit | 0814238f615f3e3b855a53add72730b957f6c790 (patch) | |
tree | a9170ece7827b039de56534459bcfa0c76ebb7e5 /vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts | |
parent | 52670a9e0b450074dfbe0d151925d0133bc8442a (diff) |
NodeInfo::getModel expects the instance-model
Now callers (objectToInstanceTree, objectToModelTree, etc.) pass the hierarchy
itself, instead of providing only the service hierarchy and keys.
Issue-ID: VID-724
Change-Id: I80cde29887d86b2cc986d96b220ff769562f38b8
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts')
-rw-r--r-- | vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts index 9c102069b..eae534c08 100644 --- a/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts +++ b/vid-webpack-master/src/app/drawingBoard/service-planning/objectsToTree/models/basic.model.info.ts @@ -1,6 +1,6 @@ import {ITreeNode} from "angular-tree-component/dist/defs/api"; import {AvailableNodeIcons} from "../../available-models-tree/available-models-tree.service"; -import {ComponentInfoModel, ComponentInfoType} from "../../component-info/component-info-model"; +import {ComponentInfoType} from "../../component-info/component-info-model"; import {ModelInformationItem} from "../../../../shared/components/model-information/model-information.component"; export interface ILevelNodeInfo { @@ -44,12 +44,11 @@ export interface ILevelNodeInfo { updatePosition(node, that, instanceId, parentStoreKey?) : void; /*********************************************************** - * return object instance - * @param modelId - The model id - * @param serviceHierarchy - The serviceHierarchy store - * @param instance - existing instance details + * return a NodeModel object instance + * @param instanceModel - The model of the instance (usually extracted from + * serviceHierarchy store) ************************************************************/ - getModel(modelId: string, instance: any, serviceHierarchy): any; + getModel(instanceModel: any): any; /*********************************************************** * return dynamic inputs of current model |