8ce413a192b4faf4abec554bbe71365f443ed105
[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 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.types.rev191129.XpdrNodeTypes;
12
13 public class OtnTopoNode {
14     private String nodeId;
15     private String clli;
16     private XpdrNodeTypes nodeType;
17     private int xpdrNb;
18     private Map<String, String> xpdrNetConnectionMap;
19     private Map<String, String> xpdrCliConnectionMap;
20
21     public OtnTopoNode(String nodeid, String clli, int xpdrNb, XpdrNodeTypes xpdrNodeTypes,
22         Map<String, String> xpdrNetConnectionMap, Map<String, String> xpdrCliConnectionMap) {
23         super();
24         this.nodeId = nodeid;
25         this.clli = clli;
26         this.nodeType = xpdrNodeTypes;
27         this.xpdrNb = xpdrNb;
28         this.xpdrNetConnectionMap = xpdrNetConnectionMap;
29         this.xpdrCliConnectionMap = xpdrCliConnectionMap;
30     }
31
32     public String getNodeId() {
33         return nodeId;
34     }
35
36     public XpdrNodeTypes getNodeType() {
37         return nodeType;
38     }
39
40     public int getNbTpNetwork() {
41         return xpdrNetConnectionMap.size();
42     }
43
44     public int getNbTpClient() {
45         return xpdrCliConnectionMap.size();
46     }
47
48     public int getXpdrNb() {
49         return xpdrNb;
50     }
51
52     public String getClli() {
53         return clli;
54     }
55
56     public Map<String, String> getXpdrNetConnectionMap() {
57         return xpdrNetConnectionMap;
58     }
59
60     public Map<String, String> getXpdrCliConnectionMap() {
61         return xpdrCliConnectionMap;
62     }
63 }