Package ons
Class WDMOXC
java.lang.Object
ons.OXC
ons.WDMOXC
public class WDMOXC extends OXC
-
Field Summary
Fields Modifier and Type Field Description protected int
freeWvlConverters
protected int
wvlConversionRange
protected int
wvlConverters
Fields inherited from class ons.OXC
freeGroomingInputPorts, freeGroomingOutputPorts, groomingInputPorts, groomingOutputPorts, id, nodeDegree
-
Constructor Summary
Constructors Constructor Description WDMOXC(int id, int groomingInPorts, int groomingOutPorts, int type, int group, int wvlConverters, int wvlConversionRange)
-
Method Summary
Modifier and Type Method Description int
getWvlConversionRange()
This function provides the wavelength conversion range of a given OXC.boolean
hasFreeWvlConverters()
This function says whether or not a given OXC has free wavelength converter(s).boolean
releaseWvlConverter()
By increasing the number of free wavelength converters, this function "releases" a wavelength converters.boolean
reserveWvlConverter()
By decreasing the number of free wavelength converters, this function "reserves" a wavelength converter.Methods inherited from class ons.OXC
allFreeGroomingInputPort, allFreeGroomingOutputPort, getActiveGroomingInputPorts, getActiveGroomingOutputPorts, getFreeGroomingInputPorts, getFreeGroomingOutputPorts, getGroomingInputPorts, getGroomingOutputPorts, getGroup, getID, getNodeDegree, getType, hasFreeGroomingInputPort, hasFreeGroomingInputPort, hasFreeGroomingOutputPort, hasFreeGroomingOutputPort, isSleep, releaseGroomingInputPort, releaseGroomingOutputPort, reserveGroomingInputPort, reserveGroomingOutputPort, setNodeDegree
-
Field Details
-
wvlConverters
protected int wvlConverters -
freeWvlConverters
protected int freeWvlConverters -
wvlConversionRange
protected int wvlConversionRange
-
-
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
-