2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.bpmn.core.domain;
\r
23 import java.io.Serializable;
\r
25 import com.fasterxml.jackson.annotation.JsonIgnore;
\r
28 * Abstract superclass for all individual decomposition resources
\r
31 //@JsonIgnoreProperties
\r
32 public abstract class ResourceDecomposition extends JsonWrapper implements Serializable {
\r
34 private static final long serialVersionUID = 1L;
\r
36 protected String resourceType; // Enum of vnf or network or allotted resource
\r
37 private ModelInfo modelInfo;
\r
39 //private List modules;
\r
40 private ResourceInstance instanceData = new ResourceInstance();
\r
43 public ModelInfo getModelInfo() {
\r
46 public void setModelInfo(ModelInfo modelInfo) {
\r
47 this.modelInfo = modelInfo;
\r
50 public ResourceInstance getInstanceData() {
\r
51 return instanceData;
\r
53 public void setInstanceData(ResourceInstance instanceData) {
\r
54 this.instanceData = instanceData;
\r
56 public void setResourceType(String resourceType) {
\r
57 this.resourceType = resourceType;
\r
62 public ModelInfo getResourceModel() {
\r
66 public String getResourceInstanceId() {
\r
67 return this.getInstanceData().getInstanceId();
\r
70 public String getResourceInstanceName() {
\r
71 return this.getInstanceData().getInstanceName();
\r
74 // public String getResourceHomingSolution() {
\r
77 public void setResourceInstanceId(String newInstanceId){
\r
78 this.getInstanceData().setInstanceId(newInstanceId);
\r
80 public void setResourceInstanceName(String newInstanceName){
\r
81 this.getInstanceData().setInstanceName(newInstanceName);
\r
84 // public String setResourceHomingSolution() {
\r