7d0982bd780c4c0025b161b906348d6ba300fd71
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / dto / TopologyShard.java
1 /*
2  * Copyright © 2016 AT&T and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.transportpce.networkmodel.dto;
9
10 import java.util.List;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.rev180226.networks.network.Node;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.Link;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.node.TerminationPoint;
14
15 /**
16  * Data holder for topology fragment.
17  */
18 public class TopologyShard {
19
20     private final List<Node> nodes;
21     private final List<Link> links;
22     private final List<TerminationPoint> tps;
23
24     public TopologyShard(List<Node> nodes, List<Link> links) {
25         this.nodes = nodes;
26         this.links = links;
27         this.tps = null;
28     }
29
30     public TopologyShard(List<Node> nodes, List<Link> links, List<TerminationPoint> tps) {
31         this.nodes = nodes;
32         this.links = links;
33         this.tps = tps;
34     }
35
36     public List<Node> getNodes() {
37         return nodes;
38     }
39
40     public List<Link> getLinks() {
41         return links;
42     }
43
44     public List<TerminationPoint> getTps() {
45         return tps;
46     }
47
48 }