2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.onap.aai.sparky.viewandinspect.entity;
27 import java.util.ArrayList;
28 import java.util.List;
31 * The Class D3VisualizationOutput.
33 public class D3VisualizationOutput {
35 public GraphMeta graphMeta;
36 public List<SparkyGraphNode> nodes;
37 public List<SparkyGraphLink> links;
38 public InlineMessage inlineMessage;
41 * Instantiates a new d 3 visualization output.
43 public D3VisualizationOutput() {
44 nodes = new ArrayList<SparkyGraphNode>();
45 links = new ArrayList<SparkyGraphLink>();
49 public GraphMeta getGraphMeta() {
56 * @param counterName the counter name
58 public void pegCounter(String counterName) {
59 graphMeta.pegCounter(counterName);
62 public void setGraphMeta(GraphMeta graphMeta) {
63 this.graphMeta = graphMeta;
69 * @param nodes the nodes
71 public void addNodes(List<SparkyGraphNode> nodes) {
72 this.nodes.addAll(nodes);
78 * @param links the links
80 public void addLinks(List<SparkyGraphLink> links) {
81 this.links.addAll(links);
84 public InlineMessage getInlineMessage() {
88 public void setInlineMessage(InlineMessage inlineMessage) {
89 this.inlineMessage = inlineMessage;