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