Constants for service type
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / fixedflex / GridConstant.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.common.fixedflex;
10
11 import java.util.Map;
12 import org.opendaylight.transportpce.common.StringConstants;
13
14 /**
15  * Constant class common to fixed grid and flex grid.
16  *
17  */
18 public final class GridConstant {
19
20     public static final String C_BAND = "cband";
21     public static final int AVAILABLE_SLOT_VALUE = 255;
22     public static final int USED_SLOT_VALUE = 0;
23     public static final double GRANULARITY = 6.25;
24     public static final int EFFECTIVE_BITS = 768;
25     public static final double START_EDGE_FREQUENCY = 191.325;
26     public static final int NB_OCTECTS = 96;
27     public static final double CENTRAL_FREQUENCY = 193.1;
28     public static final int NB_SLOTS_100G = 8;
29     public static final int NB_SLOTS_400G = 14;
30     public static final Map<String, Integer> SPECTRAL_WIDTH_SLOT_NUMBER_MAP = Map.of(
31             StringConstants.SERVICE_TYPE_100GE, NB_SLOTS_100G,
32             StringConstants.SERVICE_TYPE_400GE, NB_SLOTS_400G,
33             StringConstants.SERVICE_TYPE_OTU4, NB_SLOTS_100G);
34
35     private GridConstant() {
36     }
37 }