public class WFiber extends WAbstractNetworkElement
Modifier and Type | Method and Description |
---|---|
WNode |
getA()
Returns the origin node of the link
|
List<Double> |
getAmplifierGains_dB()
Get gains of the amplifiers traversed, in the same order as they are traversed
|
List<Double> |
getAmplifierNoiseFactor_dB()
Gets the list of amplifier noise factors in dB
|
List<Double> |
getAmplifierPmd_ps()
Gets the PMD in ps added to the signal by the amplifier
|
List<Double> |
getAmplifierPositionsKmFromOrigin_km()
Gets the list of amplifier positions, measured as km from the link start
|
String |
getArbitraryParamString()
Each element can be associated a user defined param string.
|
double |
getAttenuationCoefficient_dbPerKm()
Returns the fiber user-defined attenutation coefficient in dB per km
|
WNode |
getB()
Returns the destination node of the link
|
WFiber |
getBidirectionalPair()
If this fiber is part of a bidirectional fiber pair, returns the opposite fiber.
|
double |
getChromaticDispersionCoeff_psPerNmKm()
Returns the fiber chromatic dispersion coefficient, in ps per nm / km
|
double |
getLengthInKm()
Returns the link length in km, as defined by the user
|
Pair<Integer,Integer> |
getMinMaxValidSlotId()
Returns the minimum and maximum valid optical slot ids as defined by the user
|
Link |
getNe()
Returns the underlying Net2Plan object.
|
int |
getNumberOfOpticalLineAmplifiersTraversed()
Returns the current number of optical line amplifiers traversed
|
int |
getNumberOfValidOpticalChannels()
Returns the total number of valid optica slots in this fiber, as defined by the user
|
double |
getPmdLinkDesignValueCoeff_psPerSqrtKm()
Returns the PMD fiber design value in ps per square root of km
|
SortedSet<WLightpathRequest> |
getTraversingLpRequestsInAtLeastOneLp()
Returns the set of lightpaths that traverse this fiber
|
SortedSet<WLightpathUnregenerated> |
getTraversingLps()
Returns the set of lightpaths that traverse this fiber.
|
SortedSet<Integer> |
getValidOpticalSlotIds()
Returns the set of all the optical slot ids usable in the fiber, according to the valid optical slot ranges defined by the user
|
List<Integer> |
getValidOpticalSlotRanges()
Returns the valid optical slot ranges as defined by the user
|
boolean |
isBidirectional()
Returns true if the fiber is part of a bidirectional fiber pair
|
boolean |
isUp()
Returns true is the fiber is up, false otherwise
|
void |
remove()
Remove this fiber
|
void |
setAmplifiersTraversed_dB(List<Double> positionFromLinkOrigin_km,
List<Double> gains_db,
List<Double> noiseFactors_dB,
List<Double> pmd_ps)
Sets the traversed amplifiers information
|
void |
setArbitraryParamString(String s)
Each element can be associated a user defined param string.
|
void |
setAsDown()
Sets this fiber as down (failed).
|
void |
setAsUp()
Sets this fiber as up (not failed)
|
void |
setAttenuationCoefficient_dbPerKm(double attenuationCoef_dbPerKm)
Sets the fiber attenuation coefficient in dB per km
|
void |
setChromaticDispersionCoeff_psPerNmKm(double cdCoeff_psPerNmKm)
Sets the fiber chromatic dispersion coefficient, in ps per nm / km
|
void |
setLenghtInKm(double lenghtInKm)
Sets the link length in km
|
void |
setPmdLinkDesignValueCoeff_psPerSqrtKm(double pmdCoeff_psPerSqrKm)
Sets the PMD fiber design value in ps per square root of km
|
void |
setValidOpticalSlotRanges(List<Integer> listInitialEndSlotRanges)
Sets the slot ranges that this fiber can propagate.
|
String |
toString() |
compareTo, equals, getAsFiber, getAsIpLayer, getAsIpLink, getAsLightpathRequest, getAsLightpathUnregenerated, getAsNode, getAsServiceChain, getAsServiceChainRequest, getAsVnfInstance, getAsWdmLayer, getId, getNet, getNetPlan, isFiber, isLayerIp, isLayerWdm, isLightpathRequest, isLightpathUnregenerated, isNode, isServiceChain, isServiceChainRequest, isVnfInstance, isWIpLink, wasRemoved
public WNode getA()
public List<Double> getAmplifierGains_dB()
public List<Double> getAmplifierNoiseFactor_dB()
public List<Double> getAmplifierPmd_ps()
public List<Double> getAmplifierPositionsKmFromOrigin_km()
public String getArbitraryParamString()
public double getAttenuationCoefficient_dbPerKm()
public WNode getB()
public WFiber getBidirectionalPair()
public double getChromaticDispersionCoeff_psPerNmKm()
public double getLengthInKm()
public Pair<Integer,Integer> getMinMaxValidSlotId()
public Link getNe()
WAbstractNetworkElement
getNe
in class WAbstractNetworkElement
public int getNumberOfOpticalLineAmplifiersTraversed()
public int getNumberOfValidOpticalChannels()
public double getPmdLinkDesignValueCoeff_psPerSqrtKm()
public SortedSet<WLightpathRequest> getTraversingLpRequestsInAtLeastOneLp()
public SortedSet<WLightpathUnregenerated> getTraversingLps()
public final SortedSet<Integer> getValidOpticalSlotIds()
public final List<Integer> getValidOpticalSlotRanges()
public boolean isBidirectional()
public boolean isUp()
public void remove()
public void setAmplifiersTraversed_dB(List<Double> positionFromLinkOrigin_km, List<Double> gains_db, List<Double> noiseFactors_dB, List<Double> pmd_ps)
positionFromLinkOrigin_km
- list of positions in km, counting from the link origingains_db
- for each amplifier, the gain in dB appliednoiseFactors_dB
- for each amplifier, the ASE noise factor addedpmd_ps
- for each amplifier, the PMD factor appliedpublic void setArbitraryParamString(String s)
s
- the stringpublic void setAsDown()
public void setAsUp()
public void setAttenuationCoefficient_dbPerKm(double attenuationCoef_dbPerKm)
attenuationCoef_dbPerKm
- see abovepublic void setChromaticDispersionCoeff_psPerNmKm(double cdCoeff_psPerNmKm)
cdCoeff_psPerNmKm
- see abovepublic void setLenghtInKm(double lenghtInKm)
lenghtInKm
- see abovepublic void setPmdLinkDesignValueCoeff_psPerSqrtKm(double pmdCoeff_psPerSqrKm)
pmdCoeff_psPerSqrKm
- see abovepublic final void setValidOpticalSlotRanges(List<Integer> listInitialEndSlotRanges)
listInitialEndSlotRanges
- see aboveCopyright © 2018. All rights reserved.