Package ons
Class Modulation
java.lang.Object
ons.Modulation
public final class Modulation
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static int_128QAMstatic double_128QAM_SNRstatic double_128QAM_XTstatic double_128QAMPCstatic int_128QAMReachstatic int_16QAMstatic double_16QAM_SNRstatic double_16QAM_XTstatic double_16QAMPCstatic int_16QAMReachstatic int_256QAMstatic double_256QAM_SNRstatic double_256QAM_XTstatic double_256QAMPCstatic int_256QAMReachstatic int_32QAMstatic double_32QAM_SNRstatic double_32QAM_XTstatic double_32QAMPCstatic int_32QAMReachstatic int_64QAMstatic double_64QAM_SNRstatic double_64QAM_XTstatic double_64QAMPCstatic int_64QAMReachstatic int_8QAMstatic double_8QAM_SNRstatic double_8QAM_XTstatic double_8QAMPCstatic int_8QAMReachstatic int_BPSKstatic double_BPSK_SNRRepresents the SNR threshold of the modulation formatstatic double_BPSK_XTRepresents the XT threshold of the modulation formatstatic double_BPSKPCRepresents the power consumption of the each modulation in W.static int_BPSKReachRepresents the reach of the each modulation in kilometers.static int_QPSKstatic double_QPSK_SNRstatic double_QPSK_XTstatic double_QPSKPCstatic int_QPSKReachstatic intN_MODRepresents the number of modulations used. -
Constructor Summary
Constructors Constructor Description Modulation() -
Method Summary
Modifier and Type Method Description static intconvertModulationTypeToInteger(java.lang.String name)Convert the string value of modulation type to the equivalent id integer value, definied on this class.static intconvertRateToSlot(int rate, int slotSize, int modulation)Retrieves the number of slots needed this rate in this conditions.static intconvertSlotToRate(int numberOfSlots, int slotSize, int modulation)Retrieves the rate in Mbps that the amount of slots supports under this modulation.static intgetBestModulation(double distance)Retrieves the best modulation format given the distancestatic intgetBestModulationSNR(double snr)Retrieves the best modulation format given the snrstatic java.lang.StringgetModulationName(int id)Retrieves the modulation name from the id integer value.static ModulationgetModulationObject()static ModulationgetModulationObject(org.w3c.dom.Element xml)static doublegetModulationPC(int idModulation)Retrieves the Power Consumption of this modulation.static intgetModulationReach(int idModulation)Retrieves the reach of modulation.static doublegetModulationSNRthreshold(int idModulation)Retrieves the SNR threshold of this modulationstatic doublegetModulationXTthreshold(int idModulation)Retrieves the XT threshold of this modulationstatic booleanQoTDistanceVerify(int idModulation, double lenght)Check the modulation QoT given the route lenghtstatic booleanQoTVerify(int idModulation, double snr)Check the modulation QoT given the SNR
-
Field Details
-
N_MOD
public static final int N_MODRepresents the number of modulations used.- See Also:
- Constant Field Values
-
_BPSK
public static final int _BPSK- See Also:
- Constant Field Values
-
_QPSK
public static final int _QPSK- See Also:
- Constant Field Values
-
_8QAM
public static final int _8QAM- See Also:
- Constant Field Values
-
_16QAM
public static final int _16QAM- See Also:
- Constant Field Values
-
_32QAM
public static final int _32QAM- See Also:
- Constant Field Values
-
_64QAM
public static final int _64QAM- See Also:
- Constant Field Values
-
_128QAM
public static final int _128QAM- See Also:
- Constant Field Values
-
_256QAM
public static final int _256QAM- See Also:
- Constant Field Values
-
_BPSKReach
public static int _BPSKReachRepresents the reach of the each modulation in kilometers. -
_QPSKReach
public static int _QPSKReach -
_8QAMReach
public static int _8QAMReach -
_16QAMReach
public static int _16QAMReach -
_32QAMReach
public static int _32QAMReach -
_64QAMReach
public static int _64QAMReach -
_128QAMReach
public static int _128QAMReach -
_256QAMReach
public static int _256QAMReach -
_BPSKPC
public static double _BPSKPCRepresents the power consumption of the each modulation in W. -
_QPSKPC
public static double _QPSKPC -
_8QAMPC
public static double _8QAMPC -
_16QAMPC
public static double _16QAMPC -
_32QAMPC
public static double _32QAMPC -
_64QAMPC
public static double _64QAMPC -
_128QAMPC
public static double _128QAMPC -
_256QAMPC
public static double _256QAMPC -
_BPSK_SNR
public static double _BPSK_SNRRepresents the SNR threshold of the modulation format -
_QPSK_SNR
public static double _QPSK_SNR -
_8QAM_SNR
public static double _8QAM_SNR -
_16QAM_SNR
public static double _16QAM_SNR -
_32QAM_SNR
public static double _32QAM_SNR -
_64QAM_SNR
public static double _64QAM_SNR -
_128QAM_SNR
public static double _128QAM_SNR -
_256QAM_SNR
public static double _256QAM_SNR -
_BPSK_XT
public static double _BPSK_XTRepresents the XT threshold of the modulation format -
_QPSK_XT
public static double _QPSK_XT -
_8QAM_XT
public static double _8QAM_XT -
_16QAM_XT
public static double _16QAM_XT -
_32QAM_XT
public static double _32QAM_XT -
_64QAM_XT
public static double _64QAM_XT -
_128QAM_XT
public static double _128QAM_XT -
_256QAM_XT
public static double _256QAM_XT
-
-
Constructor Details
-
Modulation
public Modulation()
-
-
Method Details
-
getModulationObject
-
getModulationObject
-
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 MbpsslotSize- the slotSize in MHzmodulation- 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 slotsslotSize- the slotSize in MHzmodulation- 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 idlenght- 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 idsnr- 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
-