Network topology and inventory init
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / dto / NodeRegistration.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.rev161014.OrgOpenroadmAlarmListener;
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev161014.OrgOpenroadmDeOperationsListener;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.OrgOpenroadmDeviceListener;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.lldp.rev161014.OrgOpenroadmLldpListener;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.tca.rev161014.OrgOpenroadmTcaListener;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
16
17 public class NodeRegistration {
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 NodeRegistration(String nodeId,
28             ListenerRegistration<OrgOpenroadmAlarmListener> accessAlarmNotificationListenerRegistration,
29             ListenerRegistration<OrgOpenroadmDeOperationsListener> accessDeOperationasNotificationListenerRegistration,
30             ListenerRegistration<OrgOpenroadmDeviceListener> accessDeviceNotificationListenerRegistration,
31             ListenerRegistration<OrgOpenroadmLldpListener> accessLldpNotificationListenerRegistration,
32             ListenerRegistration<OrgOpenroadmTcaListener> accessTcaNotificationListenerRegistration) {
33         this.nodeId = nodeId;
34         this.accessAlarmNotificationListenerRegistration = accessAlarmNotificationListenerRegistration;
35         this.accessDeOperationasNotificationListenerRegistration = accessDeOperationasNotificationListenerRegistration;
36         this.accessDeviceNotificationListenerRegistration = accessDeviceNotificationListenerRegistration;
37         this.accessLldpNotificationListenerRegistration = accessLldpNotificationListenerRegistration;
38         this.accessTcaNotificationListenerRegistration = accessTcaNotificationListenerRegistration;
39     }
40
41     public String getNodeId() {
42         return nodeId;
43     }
44
45     public ListenerRegistration<OrgOpenroadmAlarmListener> getAccessAlarmNotificationListenerRegistration() {
46         return accessAlarmNotificationListenerRegistration;
47     }
48
49     public ListenerRegistration<OrgOpenroadmDeOperationsListener>
50         getAccessDeOperationasNotificationListenerRegistration() {
51         return accessDeOperationasNotificationListenerRegistration;
52     }
53
54     public ListenerRegistration<OrgOpenroadmDeviceListener> getAccessDeviceNotificationListenerRegistration() {
55         return accessDeviceNotificationListenerRegistration;
56     }
57
58     public ListenerRegistration<OrgOpenroadmLldpListener> getAccessLldpNotificationListenerRegistration() {
59         return accessLldpNotificationListenerRegistration;
60     }
61
62     public ListenerRegistration<OrgOpenroadmTcaListener> getAccessTcaNotificationListenerRegistration() {
63         return accessTcaNotificationListenerRegistration;
64     }
65
66 }