Update otn-topology with otn-links
[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
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.rev180226.networks.network.Node;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.Link;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.node.TerminationPoint;
15
16 /**
17  * Data holder for topology fragment.
18  */
19 public class TopologyShard {
20
21     private final List<Node> nodes;
22     private final List<Link> links;
23     private final List<TerminationPoint> tps;
24
25     public TopologyShard(List<Node> nodes, List<Link> links) {
26         this.nodes = nodes;
27         this.links = links;
28         this.tps = null;
29     }
30
31     public TopologyShard(List<Node> nodes, List<Link> links, List<TerminationPoint> tps) {
32         this.nodes = nodes;
33         this.links = links;
34         this.tps = tps;
35     }
36
37     public List<Node> getNodes() {
38         return nodes;
39     }
40
41     public List<Link> getLinks() {
42         return links;
43     }
44
45     public List<TerminationPoint> getTps() {
46         return tps;
47     }
48
49 }