Convert Sparky to Spring-Boot
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / viewandinspect / entity / D3VisualizationOutput.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25 package org.onap.aai.sparky.viewandinspect.entity;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30 /**
31  * The Class D3VisualizationOutput.
32  */
33 public class D3VisualizationOutput {
34
35   public GraphMeta graphMeta;
36   public List<SparkyGraphNode> nodes;
37   public List<SparkyGraphLink> links;
38   public InlineMessage inlineMessage;
39
40   /**
41    * Instantiates a new d 3 visualization output.
42    */
43   public D3VisualizationOutput() {
44     nodes = new ArrayList<SparkyGraphNode>();
45     links = new ArrayList<SparkyGraphLink>();
46     inlineMessage = null;
47   }
48
49   public GraphMeta getGraphMeta() {
50     return graphMeta;
51   }
52
53   /**
54    * Peg counter.
55    *
56    * @param counterName the counter name
57    */
58   public void pegCounter(String counterName) {
59     graphMeta.pegCounter(counterName);
60   }
61
62   public void setGraphMeta(GraphMeta graphMeta) {
63     this.graphMeta = graphMeta;
64   }
65
66   /**
67    * Adds the nodes.
68    *
69    * @param nodes the nodes
70    */
71   public void addNodes(List<SparkyGraphNode> nodes) {
72     this.nodes.addAll(nodes);
73   }
74
75   /**
76    * Adds the links.
77    *
78    * @param links the links
79    */
80   public void addLinks(List<SparkyGraphLink> links) {
81     this.links.addAll(links);
82   }
83
84   public InlineMessage getInlineMessage() {
85     return inlineMessage;
86   }
87
88   public void setInlineMessage(InlineMessage inlineMessage) {
89     this.inlineMessage = inlineMessage;
90   }
91
92
93 }