aff24bcb8139ea9db25f257887531697ea71bb17
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / viewandinspect / config / VisualizationConfigs.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
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=========================================================
20  *
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.sparky.viewandinspect.config;
24
25 import java.util.ArrayList;
26
27 /**
28  * The Class VisualizationConfig.
29  */
30 public class VisualizationConfigs {
31
32   private int maxSelfLinkTraversalDepth;
33
34   private boolean visualizationDebugEnabled;
35
36   private String aaiEntityNodeDescriptors;
37
38   private String generalNodeClassName;
39
40   private String searchNodeClassName;
41
42   private String selectedSearchedNodeClassName;
43
44   private int numOfThreadsToFetchNodeIntegrity;
45
46   private boolean makeAllNeighborsBidirectional;
47   
48   private ArrayList<String> shallowEntities;
49   
50   private boolean gizmoEnabled;
51
52   /**
53    * Instantiates a new visualization config.
54    */
55   public VisualizationConfigs() {
56           this.gizmoEnabled = false;
57   }
58
59   public ArrayList<String> getShallowEntities() {
60     return shallowEntities;
61   }
62
63   public void setShallowEntities(ArrayList<String> shallowEntities) {
64     this.shallowEntities = shallowEntities;
65   }
66
67   /**
68    * Make all neighbors bidirectional.
69    *
70    * @return true, if successful
71    */
72   public boolean makeAllNeighborsBidirectional() {
73     return makeAllNeighborsBidirectional;
74   }
75
76   public void setMakeAllNeighborsBidirectional(boolean makeAllNeighborsBidirectional) {
77     this.makeAllNeighborsBidirectional = makeAllNeighborsBidirectional;
78   }
79
80   public String getSelectedSearchedNodeClassName() {
81     return selectedSearchedNodeClassName;
82   }
83
84   public void setSelectedSearchedNodeClassName(String selectedSearchedNodeClassName) {
85     this.selectedSearchedNodeClassName = selectedSearchedNodeClassName;
86   }
87
88   public String getGeneralNodeClassName() {
89     return generalNodeClassName;
90   }
91
92   public void setGeneralNodeClassName(String generalNodeClassName) {
93     this.generalNodeClassName = generalNodeClassName;
94   }
95
96   public String getSearchNodeClassName() {
97     return searchNodeClassName;
98   }
99
100   public void setSearchNodeClassName(String searchNodeClassName) {
101     this.searchNodeClassName = searchNodeClassName;
102   }
103
104   public String getAaiEntityNodeDescriptors() {
105     return aaiEntityNodeDescriptors;
106   }
107
108   public void setAaiEntityNodeDescriptors(String aaiEntityNodeDescriptors) {
109     this.aaiEntityNodeDescriptors = aaiEntityNodeDescriptors;
110   }
111
112   public boolean isVisualizationDebugEnabled() {
113     return visualizationDebugEnabled;
114   }
115
116   public void setVisualizationDebugEnabled(boolean visualizationDebugEnabled) {
117     this.visualizationDebugEnabled = visualizationDebugEnabled;
118   }
119
120   public void setMaxSelfLinkTraversalDepth(int maxSelfLinkTraversalDepth) {
121     this.maxSelfLinkTraversalDepth = maxSelfLinkTraversalDepth;
122   }
123
124   public int getMaxSelfLinkTraversalDepth() {
125     return maxSelfLinkTraversalDepth;
126   }
127
128   public int getNumOfThreadsToFetchNodeIntegrity() {
129     return numOfThreadsToFetchNodeIntegrity;
130   }
131
132   public void setNumOfThreadsToFetchNodeIntegrity(int numOfThreadsToFetchNodeIntegrity) {
133     this.numOfThreadsToFetchNodeIntegrity = numOfThreadsToFetchNodeIntegrity;
134   }
135
136         public boolean isGizmoEnabled() {
137                 return gizmoEnabled;
138         }
139
140         public void setGizmoEnabled(boolean gizmoEnabled) {
141                 this.gizmoEnabled = gizmoEnabled;
142         }
143
144         @Override
145         public String toString() {
146                 return "VisualizationConfigs [maxSelfLinkTraversalDepth=" + maxSelfLinkTraversalDepth
147                                 + ", visualizationDebugEnabled=" + visualizationDebugEnabled + ", "
148                                 + (aaiEntityNodeDescriptors != null ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", "
149                                                 : "")
150                                 + (generalNodeClassName != null ? "generalNodeClassName=" + generalNodeClassName + ", " : "")
151                                 + (searchNodeClassName != null ? "searchNodeClassName=" + searchNodeClassName + ", " : "")
152                                 + (selectedSearchedNodeClassName != null
153                                                 ? "selectedSearchedNodeClassName=" + selectedSearchedNodeClassName + ", " : "")
154                                 + "numOfThreadsToFetchNodeIntegrity=" + numOfThreadsToFetchNodeIntegrity
155                                 + ", makeAllNeighborsBidirectional=" + makeAllNeighborsBidirectional + ", "
156                                 + (shallowEntities != null ? "shallowEntities=" + shallowEntities + ", " : "") + "gizmoEnabled="
157                                 + gizmoEnabled + "]";
158         }
159
160 }