Portmapping-topologies code consolidation
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / dto / OtnTopoNode.java
1 /*
2  * Copyright © 2020 Orange, Inc. 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.Map;
11
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.types.rev181019.XpdrNodeTypes;
13
14 public class OtnTopoNode {
15     private String nodeId;
16     private String clli;
17     private XpdrNodeTypes nodeType;
18     private int xpdrNb;
19     private Map<String, String> xpdrNetConnectionMap;
20     private Map<String, String> xpdrCliConnectionMap;
21
22     public OtnTopoNode(String nodeid, String clli, int xpdrNb, XpdrNodeTypes xpdrNodeTypes,
23         Map<String, String> xpdrNetConnectionMap, Map<String, String> xpdrCliConnectionMap) {
24         super();
25         this.nodeId = nodeid;
26         this.clli = clli;
27         this.nodeType = xpdrNodeTypes;
28         this.xpdrNb = xpdrNb;
29         this.xpdrNetConnectionMap = xpdrNetConnectionMap;
30         this.xpdrCliConnectionMap = xpdrCliConnectionMap;
31     }
32
33     public String getNodeId() {
34         return nodeId;
35     }
36
37     public XpdrNodeTypes getNodeType() {
38         return nodeType;
39     }
40
41     public int getNbTpNetwork() {
42         return xpdrNetConnectionMap.size();
43     }
44
45     public int getNbTpClient() {
46         return xpdrCliConnectionMap.size();
47     }
48
49     public int getXpdrNb() {
50         return xpdrNb;
51     }
52
53     public String getClli() {
54         return clli;
55     }
56
57     public Map<String, String> getXpdrNetConnectionMap() {
58         return xpdrNetConnectionMap;
59     }
60
61     public Map<String, String> getXpdrCliConnectionMap() {
62         return xpdrCliConnectionMap;
63     }
64 }