Package ons

Class Modulation

java.lang.Object
ons.Modulation

public final class Modulation
extends java.lang.Object
  • Field Details

  • Constructor Details

  • Method Details

    • getModulationObject

      public static Modulation getModulationObject()
    • getModulationObject

      public static Modulation getModulationObject​(org.w3c.dom.Element xml)
    • convertRateToSlot

      public static int convertRateToSlot​(int rate, int slotSize, int modulation)
      Retrieves the number of slots needed this rate in this conditions.
      Parameters:
      rate - the rate flow in Mbps
      slotSize - the slotSize in MHz
      modulation - the modulation Type
      Returns:
      the number of slots
    • convertSlotToRate

      public static int convertSlotToRate​(int numberOfSlots, int slotSize, int modulation)
      Retrieves the rate in Mbps that the amount of slots supports under this modulation.
      Parameters:
      numberOfSlots - the number of slots
      slotSize - the slotSize in MHz
      modulation - the modulation Type
      Returns:
      the rate in Mbps
    • getModulationName

      public static java.lang.String getModulationName​(int id)
      Retrieves the modulation name from the id integer value.
      Parameters:
      id - integer correponding to the modulation format
      Returns:
      the modulation name
    • convertModulationTypeToInteger

      public static int convertModulationTypeToInteger​(java.lang.String name)
      Convert the string value of modulation type to the equivalent id integer value, definied on this class.
      Parameters:
      name - the name of modulation format
      Returns:
      integer correponding to the modulation format
    • getModulationReach

      public static int getModulationReach​(int idModulation)
      Retrieves the reach of modulation.
      Parameters:
      idModulation - the modulation id
      Returns:
      the reach of modulation
    • getModulationPC

      public static double getModulationPC​(int idModulation)
      Retrieves the Power Consumption of this modulation.
      Parameters:
      idModulation - the modulation id
      Returns:
      the Power Consumption of modulation
    • QoTDistanceVerify

      public static boolean QoTDistanceVerify​(int idModulation, double lenght)
      Check the modulation QoT given the route lenght
      Parameters:
      idModulation - the modulation id
      lenght - the route size
      Returns:
      true if the modulation supports this snr false otherwise
    • QoTVerify

      public static boolean QoTVerify​(int idModulation, double snr)
      Check the modulation QoT given the SNR
      Parameters:
      idModulation - the modulation id
      snr - the snr checks
      Returns:
      true if the modulation supports this snr false otherwise
    • getBestModulation

      public static int getBestModulation​(double distance)
      Retrieves the best modulation format given the distance
      Parameters:
      distance - the distance in Km
      Returns:
      the best modulation format for this distance
    • getBestModulationSNR

      public static int getBestModulationSNR​(double snr)
      Retrieves the best modulation format given the snr
      Parameters:
      snr - the SNR
      Returns:
      the best modulation format for this SNR
    • getModulationSNRthreshold

      public static double getModulationSNRthreshold​(int idModulation)
      Retrieves the SNR threshold of this modulation
      Parameters:
      idModulation - the modulation id
      Returns:
      the SNR threshold of this idModulation
    • getModulationXTthreshold

      public static double getModulationXTthreshold​(int idModulation)
      Retrieves the XT threshold of this modulation
      Parameters:
      idModulation - the modulation id
      Returns:
      the XT threshold of this idModulation