Sync Common folder
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / fixedflex / FixedFlexInterface.java
diff --git a/common/src/main/java/org/opendaylight/transportpce/common/fixedflex/FixedFlexInterface.java b/common/src/main/java/org/opendaylight/transportpce/common/fixedflex/FixedFlexInterface.java
new file mode 100644 (file)
index 0000000..9367da2
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright © 2017 Orange, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.transportpce.common.fixedflex;
+/**
+ * <p>
+ *     Mapping 2.2 devices to Fixed flex.
+ * </p>
+ **/
+
+public interface FixedFlexInterface {
+    /**
+     * Calculates the center frequency, wavelength, start and stop for a wavelength number.
+     *
+     * @param index Wavelength number
+     * @return Returns FixedFlexImp object with the calculated result.
+     */
+    FixedFlexImpl getFixedFlexWaveMapping(long index);
+
+    double getCenterFrequency();
+
+    double getStart();
+
+    double getStop();
+
+    double getWavelength();
+
+    long getIndex();
+}
+