/* * Copyright © 2016 AT&T and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.transportpce.networkmodel.dto; import java.util.List; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.rev180226.networks.network.Node; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.Link; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.topology.rev180226.networks.network.node.TerminationPoint; /** * Data holder for topology fragment. */ public class TopologyShard { private final List nodes; private final List links; private final List tps; public TopologyShard(List nodes, List links) { this.nodes = nodes; this.links = links; this.tps = null; } public TopologyShard(List nodes, List links, List tps) { this.nodes = nodes; this.links = links; this.tps = tps; } public List getNodes() { return nodes; } public List getLinks() { return links; } public List getTps() { return tps; } }