2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.viewandinspect.config;
25 import java.util.ArrayList;
28 * The Class VisualizationConfig.
30 public class VisualizationConfigs {
32 private int maxSelfLinkTraversalDepth;
34 private boolean visualizationDebugEnabled;
36 private String aaiEntityNodeDescriptors;
38 private String generalNodeClassName;
40 private String searchNodeClassName;
42 private String selectedSearchedNodeClassName;
44 private int numOfThreadsToFetchNodeIntegrity;
46 private boolean makeAllNeighborsBidirectional;
48 private ArrayList<String> shallowEntities;
51 * Instantiates a new visualization config.
53 public VisualizationConfigs() {}
55 public ArrayList<String> getShallowEntities() {
56 return shallowEntities;
59 public void setShallowEntities(ArrayList<String> shallowEntities) {
60 this.shallowEntities = shallowEntities;
64 * Make all neighbors bidirectional.
66 * @return true, if successful
68 public boolean makeAllNeighborsBidirectional() {
69 return makeAllNeighborsBidirectional;
72 public void setMakeAllNeighborsBidirectional(boolean makeAllNeighborsBidirectional) {
73 this.makeAllNeighborsBidirectional = makeAllNeighborsBidirectional;
76 public String getSelectedSearchedNodeClassName() {
77 return selectedSearchedNodeClassName;
80 public void setSelectedSearchedNodeClassName(String selectedSearchedNodeClassName) {
81 this.selectedSearchedNodeClassName = selectedSearchedNodeClassName;
84 public String getGeneralNodeClassName() {
85 return generalNodeClassName;
88 public void setGeneralNodeClassName(String generalNodeClassName) {
89 this.generalNodeClassName = generalNodeClassName;
92 public String getSearchNodeClassName() {
93 return searchNodeClassName;
96 public void setSearchNodeClassName(String searchNodeClassName) {
97 this.searchNodeClassName = searchNodeClassName;
100 public String getAaiEntityNodeDescriptors() {
101 return aaiEntityNodeDescriptors;
104 public void setAaiEntityNodeDescriptors(String aaiEntityNodeDescriptors) {
105 this.aaiEntityNodeDescriptors = aaiEntityNodeDescriptors;
108 public boolean isVisualizationDebugEnabled() {
109 return visualizationDebugEnabled;
112 public void setVisualizationDebugEnabled(boolean visualizationDebugEnabled) {
113 this.visualizationDebugEnabled = visualizationDebugEnabled;
116 public void setMaxSelfLinkTraversalDepth(int maxSelfLinkTraversalDepth) {
117 this.maxSelfLinkTraversalDepth = maxSelfLinkTraversalDepth;
120 public int getMaxSelfLinkTraversalDepth() {
121 return maxSelfLinkTraversalDepth;
124 public int getNumOfThreadsToFetchNodeIntegrity() {
125 return numOfThreadsToFetchNodeIntegrity;
128 public void setNumOfThreadsToFetchNodeIntegrity(int numOfThreadsToFetchNodeIntegrity) {
129 this.numOfThreadsToFetchNodeIntegrity = numOfThreadsToFetchNodeIntegrity;
135 public String toString() {
136 return "VisualizationConfigs [maxSelfLinkTraversalDepth=" + maxSelfLinkTraversalDepth
137 + ", visualizationDebugEnabled=" + visualizationDebugEnabled + ", "
138 + (aaiEntityNodeDescriptors != null
139 ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
140 + (generalNodeClassName != null ? "generalNodeClassName=" + generalNodeClassName + ", "
142 + (searchNodeClassName != null ? "searchNodeClassName=" + searchNodeClassName + ", " : "")
143 + (selectedSearchedNodeClassName != null
144 ? "selectedSearchedNodeClassName=" + selectedSearchedNodeClassName + ", " : "")
145 + "numOfThreadsToFetchNodeIntegrity=" + numOfThreadsToFetchNodeIntegrity
146 + ", makeAllNeighborsBidirectional=" + makeAllNeighborsBidirectional + "]";