2 * ============LICENSE_START=======================================================
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
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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.viewandinspect.entity;
25 import java.util.ArrayList;
26 import java.util.List;
29 * The Class D3VisualizationOutput.
31 public class D3VisualizationOutput {
33 public GraphMeta graphMeta;
34 public List<JsonNode> nodes;
35 public List<JsonNodeLink> links;
36 public InlineMessage inlineMessage;
39 * Instantiates a new d 3 visualization output.
41 public D3VisualizationOutput() {
42 nodes = new ArrayList<JsonNode>();
43 links = new ArrayList<JsonNodeLink>();
47 public GraphMeta getGraphMeta() {
54 * @param counterName the counter name
56 public void pegCounter(String counterName) {
57 graphMeta.pegCounter(counterName);
60 public void setGraphMeta(GraphMeta graphMeta) {
61 this.graphMeta = graphMeta;
67 * @param nodes the nodes
69 public void addNodes(List<JsonNode> nodes) {
70 this.nodes.addAll(nodes);
76 * @param links the links
78 public void addLinks(List<JsonNodeLink> links) {
79 this.links.addAll(links);
82 public InlineMessage getInlineMessage() {
86 public void setInlineMessage(InlineMessage inlineMessage) {
87 this.inlineMessage = inlineMessage;