Port capabilities handling in OTN topology
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / dto / NodeRegistration22.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 org.opendaylight.yang.gen.v1.http.org.openroadm.alarm.rev181019.OrgOpenroadmAlarmListener;
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev181019.OrgOpenroadmDeOperationsListener;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.OrgOpenroadmDeviceListener;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.lldp.rev181019.OrgOpenroadmLldpListener;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.tca.rev181019.OrgOpenroadmTcaListener;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
16
17 public class NodeRegistration22 {
18
19     private final String nodeId;
20     private final ListenerRegistration<OrgOpenroadmAlarmListener> accessAlarmNotificationListenerRegistration;
21     private final ListenerRegistration<OrgOpenroadmDeOperationsListener>
22         accessDeOperationasNotificationListenerRegistration;
23     private final ListenerRegistration<OrgOpenroadmDeviceListener> accessDeviceNotificationListenerRegistration;
24     private final ListenerRegistration<OrgOpenroadmLldpListener> accessLldpNotificationListenerRegistration;
25     private final ListenerRegistration<OrgOpenroadmTcaListener> accessTcaNotificationListenerRegistration;
26
27     public NodeRegistration22(String nodeId,
28                               ListenerRegistration<OrgOpenroadmAlarmListener>
29                                   accessAlarmNotificationListenerRegistration,
30                               ListenerRegistration<OrgOpenroadmDeOperationsListener>
31                                   accessDeOperationasNotificationListenerRegistration,
32                               ListenerRegistration<OrgOpenroadmDeviceListener>
33                                   accessDeviceNotificationListenerRegistration,
34                               ListenerRegistration<OrgOpenroadmLldpListener>
35                                   accessLldpNotificationListenerRegistration,
36                               ListenerRegistration<OrgOpenroadmTcaListener>
37                                   accessTcaNotificationListenerRegistration) {
38         this.nodeId = nodeId;
39         this.accessAlarmNotificationListenerRegistration = accessAlarmNotificationListenerRegistration;
40         this.accessDeOperationasNotificationListenerRegistration = accessDeOperationasNotificationListenerRegistration;
41         this.accessDeviceNotificationListenerRegistration = accessDeviceNotificationListenerRegistration;
42         this.accessLldpNotificationListenerRegistration = accessLldpNotificationListenerRegistration;
43         this.accessTcaNotificationListenerRegistration = accessTcaNotificationListenerRegistration;
44     }
45
46     public String getNodeId() {
47         return nodeId;
48     }
49
50     public ListenerRegistration<OrgOpenroadmAlarmListener> getAccessAlarmNotificationListenerRegistration() {
51         return accessAlarmNotificationListenerRegistration;
52     }
53
54     public ListenerRegistration<OrgOpenroadmDeOperationsListener>
55         getAccessDeOperationasNotificationListenerRegistration() {
56         return accessDeOperationasNotificationListenerRegistration;
57     }
58
59     public ListenerRegistration<OrgOpenroadmDeviceListener> getAccessDeviceNotificationListenerRegistration() {
60         return accessDeviceNotificationListenerRegistration;
61     }
62
63     public ListenerRegistration<OrgOpenroadmLldpListener> getAccessLldpNotificationListenerRegistration() {
64         return accessLldpNotificationListenerRegistration;
65     }
66
67     public ListenerRegistration<OrgOpenroadmTcaListener> getAccessTcaNotificationListenerRegistration() {
68         return accessTcaNotificationListenerRegistration;
69     }
70
71 }