2 * Copyright © 2017 Orange, Inc. and others. All rights reserved.
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
9 package org.opendaylight.transportpce.stubpce.topology;
11 import org.opendaylight.transportpce.stubpce.TpNodeTp;
12 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev170426.pce.resource.resource.resource.Link;
15 * Class to create structure
18 * @author <a href="mailto:martial.coulibaly@gfi.com">Martial Coulibaly</a> on
23 private TpNodeTp tpNodeTp;
24 /** Link at TpNodeTp. */
30 * @param tpnodetp TpNodeTp
31 * @param link link at the end of TpNodeTp
33 public Path(TpNodeTp tpnodetp, Link link) {
34 setTpNodeTp(tpnodetp);
38 public Path(TpNodeTp tpNodeTp) {
39 setTpNodeTp(tpNodeTp);
42 public TpNodeTp getTpNodeTp() {
46 public void setTpNodeTp(TpNodeTp tpNodeTp) {
47 this.tpNodeTp = tpNodeTp;
50 public Link getLink() {
54 public void setLink(Link link) {
59 public String toString() {
60 java.lang.String name = "Path [";
61 java.lang.StringBuilder builder = new java.lang.StringBuilder(name);
62 if (tpNodeTp != null) {
63 builder.append("tpNodeTp= ");
64 builder.append(tpNodeTp);
70 return builder.append(']').toString();