2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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=========================================================
20 package org.openecomp.sdc.translator;
22 import org.apache.commons.lang3.tuple.Pair;
23 import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation.ConsolidationData;
24 import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation.GetAttrFuncData;
26 import java.util.List;
28 public class SubInterfaceConsolidationDataTestInfo {
29 private final String serviceTemplateFileName;
30 private final String portNodeTemplateId;
31 private final String subInterfaceType;
32 private final int resourceGroupCount;
33 private final String networkRole;
34 private final String subInterfaceId;
35 private final List<String> nodesConnectedIn;
36 private final List<String> nodesConnectedOut;
37 private final List<String> nodesGetAttrIn;
38 private final List<Pair<String, GetAttrFuncData>> nodesGetAttrOut;
39 private final ConsolidationData consolidationData;
41 public SubInterfaceConsolidationDataTestInfo(String serviceTemplateFileName,
42 String portNodeTemplateId, String subInterfaceType,
43 int resourceGroupCount, String networkRole,
44 String subInterfaceId, List<String> nodesConnectedIn,
45 List<String> nodesConnectedOut,
46 List<String> nodesGetAttrIn,
47 List<Pair<String, GetAttrFuncData>> nodesGetAttrOut,
48 ConsolidationData consolidationData) {
49 this.serviceTemplateFileName = serviceTemplateFileName;
50 this.portNodeTemplateId = portNodeTemplateId;
51 this.subInterfaceType = subInterfaceType;
52 this.resourceGroupCount = resourceGroupCount;
53 this.networkRole = networkRole;
54 this.subInterfaceId = subInterfaceId;
55 this.nodesConnectedIn = nodesConnectedIn;
56 this.nodesConnectedOut = nodesConnectedOut;
57 this.nodesGetAttrIn = nodesGetAttrIn;
58 this.nodesGetAttrOut = nodesGetAttrOut;
59 this.consolidationData = consolidationData;
62 public String getServiceTemplateFileName() {
63 return serviceTemplateFileName;
66 public String getPortNodeTemplateId() {
67 return portNodeTemplateId;
70 public String getSubInterfaceType() {
71 return subInterfaceType;
74 public int getResourceGroupCount() {
75 return resourceGroupCount;
78 public String getNetworkRole() {
82 public String getSubInterfaceId() {
83 return subInterfaceId;
86 public List<String> getNodesConnectedIn() {
87 return nodesConnectedIn;
90 public List<String> getNodesConnectedOut() {
91 return nodesConnectedOut;
94 public List<String> getNodesGetAttrIn() {
95 return nodesGetAttrIn;
98 public List<Pair<String, GetAttrFuncData>> getNodesGetAttrOut() {
99 return nodesGetAttrOut;
102 public ConsolidationData getConsolidationData() {
103 return consolidationData;