Package ons

Class WDMOXC

java.lang.Object
ons.OXC
ons.WDMOXC

public class WDMOXC
extends OXC
  • Field Details

  • Constructor Details

    • WDMOXC

      public WDMOXC​(int id, int groomingInPorts, int groomingOutPorts, int type, int group, int wvlConverters, int wvlConversionRange)
  • Method Details

    • hasFreeWvlConverters

      public boolean hasFreeWvlConverters()
      This function says whether or not a given OXC has free wavelength converter(s).
      Returns:
      true if the OXC has free wavelength converter(s)
    • reserveWvlConverter

      public boolean reserveWvlConverter()
      By decreasing the number of free wavelength converters, this function "reserves" a wavelength converter.
      Returns:
      false if there are no free wavelength converters
    • releaseWvlConverter

      public boolean releaseWvlConverter()
      By increasing the number of free wavelength converters, this function "releases" a wavelength converters.
      Returns:
      false if there are no wavelength converters to be freed
    • getWvlConversionRange

      public int getWvlConversionRange()
      This function provides the wavelength conversion range of a given OXC.
      Returns:
      the OXC's wvlConversionRange attribute