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