69971c531e470baabddf726c81e4a5063929986b
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / viewandinspect / entity / D3VisualizationOutput.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.entity;
24
25 import java.util.ArrayList;
26 import java.util.List;
27
28 /**
29  * The Class D3VisualizationOutput.
30  */
31 public class D3VisualizationOutput {
32
33   public GraphMeta graphMeta;
34   public List<JsonNode> nodes;
35   public List<JsonNodeLink> links;
36   public InlineMessage inlineMessage;
37
38   /**
39    * Instantiates a new d 3 visualization output.
40    */
41   public D3VisualizationOutput() {
42     nodes = new ArrayList<JsonNode>();
43     links = new ArrayList<JsonNodeLink>();
44     inlineMessage = null;
45   }
46
47   public GraphMeta getGraphMeta() {
48     return graphMeta;
49   }
50
51   /**
52    * Peg counter.
53    *
54    * @param counterName the counter name
55    */
56   public void pegCounter(String counterName) {
57     graphMeta.pegCounter(counterName);
58   }
59
60   public void setGraphMeta(GraphMeta graphMeta) {
61     this.graphMeta = graphMeta;
62   }
63
64   /**
65    * Adds the nodes.
66    *
67    * @param nodes the nodes
68    */
69   public void addNodes(List<JsonNode> nodes) {
70     this.nodes.addAll(nodes);
71   }
72
73   /**
74    * Adds the links.
75    *
76    * @param links the links
77    */
78   public void addLinks(List<JsonNodeLink> links) {
79     this.links.addAll(links);
80   }
81
82   public InlineMessage getInlineMessage() {
83     return inlineMessage;
84   }
85
86   public void setInlineMessage(InlineMessage inlineMessage) {
87     this.inlineMessage = inlineMessage;
88   }
89
90
91 }