Update PCE for OTUC4, ODUC4 and 100GE MXPDR
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / fixedflex / GridConstant.java
index 677b09e682596949159093431e768f492982dd38..4288421f44ecfaa6261dae2fd8239f50b41db164 100644 (file)
@@ -42,9 +42,10 @@ public final class GridConstant {
      * Map for associate service type with nb slots.
      */
     public static final Map<String, Integer> SPECTRAL_WIDTH_SLOT_NUMBER_MAP = Map.of(
-            StringConstants.SERVICE_TYPE_100GE, NB_SLOTS_100G,
+            StringConstants.SERVICE_TYPE_100GE_T, NB_SLOTS_100G,
             StringConstants.SERVICE_TYPE_400GE, NB_SLOTS_400G,
             StringConstants.SERVICE_TYPE_OTU4, NB_SLOTS_100G);
+
     /**
      * Map to associate service rate to modulation format.
      */
@@ -53,6 +54,7 @@ public final class GridConstant {
             ServiceRateConstant.RATE_200, ModulationFormat.DpQpsk,
             ServiceRateConstant.RATE_300, ModulationFormat.DpQam8,
             ServiceRateConstant.RATE_400, ModulationFormat.DpQam16);
+
     /**
      * Map to associate service rate and modulation format to frequency width.
      */
@@ -67,7 +69,9 @@ public final class GridConstant {
             WIDTH_40, SLOT_WIDTH_50,
             WIDTH_80, SLOT_WIDTH_87_5);
 
-    public static final int FREQUENCY_PRECISION = 4;
+    public static final int FIXED_GRID_FREQUENCY_PRECISION = 4;
+
+    public static final int FLEX_GRID_FREQUENCY_PRECISION = 5;
 
     /**
      * Map to associate service rate and modulation format to frequency slot width.
@@ -77,6 +81,15 @@ public final class GridConstant {
     public static final String SPECTRAL_SLOT_SEPARATOR = ":";
     public static final String NAME_PARAMETERS_SEPARATOR = "-";
 
+    /**
+     * Map for associate service rate with nb slots.
+     */
+    public static final Map<Uint32, Integer> RATE_SPECTRAL_WIDTH_SLOT_NUMBER_MAP = Map.of(
+            ServiceRateConstant.RATE_100, NB_SLOTS_100G,
+            ServiceRateConstant.RATE_200, NB_SLOTS_100G,
+            ServiceRateConstant.RATE_300, NB_SLOTS_100G,
+            ServiceRateConstant.RATE_400, NB_SLOTS_400G);
+
     private GridConstant() {
     }