2  * ============LICENSE_START=======================================================
 
   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
 
  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 package org.onap.aai.sparky.viewandinspect.config;
 
  23 import java.util.ArrayList;
 
  25 import org.onap.aai.sparky.config.SparkyResourceLoader;
 
  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;
 
  50   private boolean gizmoEnabled;
 
  52   private SparkyResourceLoader resourceLoader;
 
  55    * Instantiates a new visualization config.
 
  57   public VisualizationConfigs() {
 
  58           this.gizmoEnabled = false;
 
  61   public ArrayList<String> getShallowEntities() {
 
  62     return shallowEntities;
 
  65   public void setShallowEntities(ArrayList<String> shallowEntities) {
 
  66     this.shallowEntities = shallowEntities;
 
  70    * Make all neighbors bidirectional.
 
  72    * @return true, if successful
 
  74   public boolean makeAllNeighborsBidirectional() {
 
  75     return makeAllNeighborsBidirectional;
 
  78   public void setMakeAllNeighborsBidirectional(boolean makeAllNeighborsBidirectional) {
 
  79     this.makeAllNeighborsBidirectional = makeAllNeighborsBidirectional;
 
  82   public String getSelectedSearchedNodeClassName() {
 
  83     return selectedSearchedNodeClassName;
 
  86   public void setSelectedSearchedNodeClassName(String selectedSearchedNodeClassName) {
 
  87     this.selectedSearchedNodeClassName = selectedSearchedNodeClassName;
 
  90   public String getGeneralNodeClassName() {
 
  91     return generalNodeClassName;
 
  94   public void setGeneralNodeClassName(String generalNodeClassName) {
 
  95     this.generalNodeClassName = generalNodeClassName;
 
  98   public String getSearchNodeClassName() {
 
  99     return searchNodeClassName;
 
 102   public void setSearchNodeClassName(String searchNodeClassName) {
 
 103     this.searchNodeClassName = searchNodeClassName;
 
 106   public String getAaiEntityNodeDescriptors() {
 
 107     return aaiEntityNodeDescriptors;
 
 110   public void setAaiEntityNodeDescriptors(String aaiEntityNodeDescriptors) {
 
 111     this.aaiEntityNodeDescriptors = aaiEntityNodeDescriptors;
 
 114   public boolean isVisualizationDebugEnabled() {
 
 115     return visualizationDebugEnabled;
 
 118   public void setVisualizationDebugEnabled(boolean visualizationDebugEnabled) {
 
 119     this.visualizationDebugEnabled = visualizationDebugEnabled;
 
 122   public void setMaxSelfLinkTraversalDepth(int maxSelfLinkTraversalDepth) {
 
 123     this.maxSelfLinkTraversalDepth = maxSelfLinkTraversalDepth;
 
 126   public int getMaxSelfLinkTraversalDepth() {
 
 127     return maxSelfLinkTraversalDepth;
 
 130   public int getNumOfThreadsToFetchNodeIntegrity() {
 
 131     return numOfThreadsToFetchNodeIntegrity;
 
 134   public void setNumOfThreadsToFetchNodeIntegrity(int numOfThreadsToFetchNodeIntegrity) {
 
 135     this.numOfThreadsToFetchNodeIntegrity = numOfThreadsToFetchNodeIntegrity;
 
 138         public boolean isGizmoEnabled() {
 
 142         public void setGizmoEnabled(boolean gizmoEnabled) {
 
 143                 this.gizmoEnabled = gizmoEnabled;
 
 146   public SparkyResourceLoader getResourceLoader() {
 
 147     return resourceLoader;
 
 150   public void setResourceLoader(SparkyResourceLoader resourceLoader) {
 
 151     this.resourceLoader = resourceLoader;
 
 155         public String toString() {
 
 156                 return "VisualizationConfigs [maxSelfLinkTraversalDepth=" + maxSelfLinkTraversalDepth
 
 157                                 + ", visualizationDebugEnabled=" + visualizationDebugEnabled + ", "
 
 158                                 + (aaiEntityNodeDescriptors != null ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", "
 
 160                                 + (generalNodeClassName != null ? "generalNodeClassName=" + generalNodeClassName + ", " : "")
 
 161                                 + (searchNodeClassName != null ? "searchNodeClassName=" + searchNodeClassName + ", " : "")
 
 162                                 + (selectedSearchedNodeClassName != null
 
 163                                                 ? "selectedSearchedNodeClassName=" + selectedSearchedNodeClassName + ", " : "")
 
 164                                 + "numOfThreadsToFetchNodeIntegrity=" + numOfThreadsToFetchNodeIntegrity
 
 165                                 + ", makeAllNeighborsBidirectional=" + makeAllNeighborsBidirectional + ", "
 
 166                                 + (shallowEntities != null ? "shallowEntities=" + shallowEntities + ", " : "") + "gizmoEnabled="
 
 167                                 + gizmoEnabled + "]";