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
_128QAM
static double
_128QAM_SNR
static double
_128QAM_XT
static double
_128QAMPC
static int
_128QAMReach
static int
_16QAM
static double
_16QAM_SNR
static double
_16QAM_XT
static double
_16QAMPC
static int
_16QAMReach
static int
_256QAM
static double
_256QAM_SNR
static double
_256QAM_XT
static double
_256QAMPC
static int
_256QAMReach
static int
_32QAM
static double
_32QAM_SNR
static double
_32QAM_XT
static double
_32QAMPC
static int
_32QAMReach
static int
_64QAM
static double
_64QAM_SNR
static double
_64QAM_XT
static double
_64QAMPC
static int
_64QAMReach
static int
_8QAM
static double
_8QAM_SNR
static double
_8QAM_XT
static double
_8QAMPC
static int
_8QAMReach
static int
_BPSK
static double
_BPSK_SNR
Represents the SNR threshold of the modulation formatstatic double
_BPSK_XT
Represents the XT threshold of the modulation formatstatic double
_BPSKPC
Represents the power consumption of the each modulation in W.static int
_BPSKReach
Represents the reach of the each modulation in kilometers.static int
_QPSK
static double
_QPSK_SNR
static double
_QPSK_XT
static double
_QPSKPC
static int
_QPSKReach
static int
N_MOD
Represents the number of modulations used. -
Constructor Summary
Constructors Constructor Description Modulation()
-
Method Summary
Modifier and Type Method Description static int
convertModulationTypeToInteger(java.lang.String name)
Convert the string value of modulation type to the equivalent id integer value, definied on this class.static int
convertRateToSlot(int rate, int slotSize, int modulation)
Retrieves the number of slots needed this rate in this conditions.static int
convertSlotToRate(int numberOfSlots, int slotSize, int modulation)
Retrieves the rate in Mbps that the amount of slots supports under this modulation.static int
getBestModulation(double distance)
Retrieves the best modulation format given the distancestatic int
getBestModulationSNR(double snr)
Retrieves the best modulation format given the snrstatic java.lang.String
getModulationName(int id)
Retrieves the modulation name from the id integer value.static Modulation
getModulationObject()
static Modulation
getModulationObject(org.w3c.dom.Element xml)
static double
getModulationPC(int idModulation)
Retrieves the Power Consumption of this modulation.static int
getModulationReach(int idModulation)
Retrieves the reach of modulation.static double
getModulationSNRthreshold(int idModulation)
Retrieves the SNR threshold of this modulationstatic double
getModulationXTthreshold(int idModulation)
Retrieves the XT threshold of this modulationstatic boolean
QoTDistanceVerify(int idModulation, double lenght)
Check the modulation QoT given the route lenghtstatic boolean
QoTVerify(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
-