1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
package org.openecomp.sdc.generator.datatypes.tosca;
import org.openecomp.sdc.vendorsoftwareproduct.types.composition.Nic;
import java.util.List;
import java.util.Map;
public class VspModelInfo {
private String releaseVendor;
//Map of component id and name
private Map<String, String> components;
//Map of part number and deployment flavor model
private Map<String, DeploymentFlavorModel> allowedFlavors;
//Map of component id and images
private Map<String, List<MultiFlavorVfcImage>> multiFlavorVfcImages;
//Map of component and ports (NICs)
private Map<String, List<Nic>> nics;
public String getReleaseVendor() {
return releaseVendor;
}
public void setReleaseVendor(String releaseVendor) {
this.releaseVendor = releaseVendor;
}
public Map<String, String> getComponents() {
return components;
}
public void setComponents(Map<String, String> components) {
this.components = components;
}
public Map<String, DeploymentFlavorModel> getAllowedFlavors() {
return allowedFlavors;
}
public void setAllowedFlavors(Map<String, DeploymentFlavorModel> allowedFlavors) {
this.allowedFlavors = allowedFlavors;
}
public Map<String, List<MultiFlavorVfcImage>> getMultiFlavorVfcImages() {
return multiFlavorVfcImages;
}
public void setMultiFlavorVfcImages(Map<String, List<MultiFlavorVfcImage>> multiFlavorVfcImages) {
this.multiFlavorVfcImages = multiFlavorVfcImages;
}
public Map<String, List<Nic>> getNics() {
return nics;
}
public void setNics(Map<String, List<Nic>> nics) {
this.nics = nics;
}
@Override
public int hashCode() {
int result = releaseVendor != null ? releaseVendor.hashCode() : 0;
result = 31 * result + (components != null ? components.hashCode() : 0);
result = 31 * result + (allowedFlavors != null ? allowedFlavors.hashCode() : 0);
result = 31 * result + (multiFlavorVfcImages != null ? multiFlavorVfcImages.hashCode() : 0);
result = 31 * result + (nics != null ? nics.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "VspModelInfo{"
+ "releaseVendor='" + releaseVendor + '\''
+ ", components=" + components
+ ", allowedFlavors=" + allowedFlavors
+ ", multiFlavorVfcImages=" + multiFlavorVfcImages
+ ", nics=" + nics
+ '}';
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj != null && getClass() != obj.getClass()) {
return false;
}
VspModelInfo other = (VspModelInfo) obj;
if(other != null) {
if (this.releaseVendor == null) {
if (other.releaseVendor != null) {
return false;
}
} else if (!releaseVendor.equals(other.releaseVendor)) {
return false;
}
if (this.components == null) {
if (other.components != null) {
return false;
}
} else if (!components.equals(other.components)) {
return false;
}
if (this.allowedFlavors == null) {
if (other.allowedFlavors != null) {
return false;
}
} else if (!allowedFlavors.equals(other.allowedFlavors)) {
return false;
}
if (this.multiFlavorVfcImages == null) {
if (other.multiFlavorVfcImages != null) {
return false;
}
} else if (!multiFlavorVfcImages.equals(other.multiFlavorVfcImages)) {
return false;
}
if (this.multiFlavorVfcImages == null) {
if (other.multiFlavorVfcImages != null) {
return false;
}
} else if (!multiFlavorVfcImages.equals(other.multiFlavorVfcImages)) {
return false;
}
if (this.nics == null) {
if (other.nics != null) {
return false;
}
} else if (!nics.equals(other.nics)) {
return false;
}
}
return true;
}
}
|