5573ad61c5b97be38607f507a128aa03796d00a0
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / networkanalyzer / PceNode.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
9 package org.opendaylight.transportpce.pce.networkanalyzer;
10
11 import java.math.BigDecimal;
12 import java.util.BitSet;
13 import java.util.List;
14 import java.util.Map;
15 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.state.types.rev191129.State;
16 import org.opendaylight.yang.gen.v1.http.org.openroadm.equipment.states.types.rev191129.AdminStates;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.network.rev180226.NodeId;
18 import org.opendaylight.yangtools.yang.common.Uint16;
19
20 public interface PceNode {
21     String getPceNodeType();
22
23     String getSupNetworkNodeId();
24
25     String getSupClliNodeId();
26
27     void addOutgoingLink(PceLink outLink);
28
29     String getRdmSrgClient(String tp, String direction);
30
31     String getXpdrClient(String tp);
32
33     boolean checkTP(String tp);
34
35     List<PceLink> getOutgoingLinks();
36
37     AdminStates getAdminStates();
38
39     State getState();
40
41     NodeId getNodeId();
42
43     Map<String, List<Uint16>> getAvailableTribPorts();
44
45     Map<String, List<Uint16>> getAvailableTribSlots();
46
47     /**
48      * Get the version of node.
49      * @return the OpenROADM yang release supported by the node.
50      */
51     String getVersion();
52
53     /**
54      * For optical node, the spectrumOccupation of the node.
55      * @return BitSet.
56      */
57     BitSet getBitSetData();
58
59     /**
60      * For optical node the slot width granularity from mc capabilities.
61      * @return Decimal64.
62      */
63     BigDecimal getSlotWidthGranularity();
64
65     /**
66      * For optical node the central-frequency granularity from mc capabilities.
67      * @return Decimal64.
68      */
69     BigDecimal getCentralFreqGranularity();
70 }