Sync Common folder
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / fixedflex / FixedFlexInterface.java
1 /*
2  * Copyright © 2017 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  * <p>
12  *     Mapping 2.2 devices to Fixed flex.
13  * </p>
14  **/
15
16 public interface FixedFlexInterface {
17     /**
18      * Calculates the center frequency, wavelength, start and stop for a wavelength number.
19      *
20      * @param index Wavelength number
21      * @return Returns FixedFlexImp object with the calculated result.
22      */
23     FixedFlexImpl getFixedFlexWaveMapping(long index);
24
25     double getCenterFrequency();
26
27     double getStart();
28
29     double getStop();
30
31     double getWavelength();
32
33     long getIndex();
34 }
35