Network topology and inventory init
[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.rev150608.network.Node;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev150608.network.Link;
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
23     public TopologyShard(List<Node> nodes, List<Link> links) {
24         this.nodes = nodes;
25         this.links = links;
26     }
27
28     public List<Node> getNodes() {
29         return nodes;
30     }
31
32     public List<Link> getLinks() {
33         return links;
34     }
35
36 }