added OSNR calculation logic into PCE
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / PceConstraints.java
index d64674809993d50b48c4b061f08417404212bb56..242737c4187a44f6d551a4eae443a0f0e69c883d 100644 (file)
@@ -26,6 +26,8 @@ public class PceConstraints {
     private List<String> srlgToExclude = new ArrayList<String>();
     private List<String> nodesToInclude = new ArrayList<String>();
     private List<PceNode> pceNodesToInclude = new ArrayList<PceNode>();
+    public static Long constOSNR = 1L;
+    private double maxOSNR = (constOSNR / (Math.pow(10, (24 / 10.0))));
 //  List<String> srlgToInclude = new ArrayList<String>();
 
 
@@ -92,4 +94,10 @@ public class PceConstraints {
         this.pceNodesToInclude.add(node);
     }
 
+    public Double getMaxOSNR() {
+        LOG.debug("in Pceconstraints getMaxOSNR = {}", maxOSNR);
+        return maxOSNR;
+    }
+
+
 }