public class OchSignal extends java.lang.Object implements Lambda
See ITU G.709 "Interfaces for the Optical Transport Network (OTN)". ITU G.694.1 "Spectral grids for WDM applications: DWDM frequency grid".
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.Integer> |
FIXED_GRID_SLOT_GRANULARITIES |
| Constructor and Description |
|---|
OchSignal(Frequency centerFrequency,
ChannelSpacing channelSpacing,
int slotGranularity)
Deprecated.
1.4.0 Emu Release
|
OchSignal(GridType gridType,
ChannelSpacing channelSpacing,
int spacingMultiplier,
int slotGranularity)
Creates an instance with the specified arguments.
|
| Modifier and Type | Method and Description |
|---|---|
Frequency |
centralFrequency()
Returns central frequency in MHz.
|
ChannelSpacing |
channelSpacing()
Returns channel spacing.
|
boolean |
equals(java.lang.Object obj) |
GridType |
gridType()
Returns grid type.
|
int |
hashCode() |
static OchSignal |
newDwdmSlot(ChannelSpacing spacing,
int index)
Creates an instance of
OchSignal representing a fixed DWDM frequency slot. |
static OchSignal |
newFlexGridSlot(int index)
Creates an instance of
OchSignal representing a flex grid frequency slot. |
int |
slotGranularity()
Returns slot width granularity.
|
Frequency |
slotWidth()
Returns slot width.
|
int |
spacingMultiplier()
Returns spacing multiplier.
|
static OchSignal |
toFixedGrid(java.util.List<OchSignal> lambdas,
ChannelSpacing spacing)
Convert list of lambdas with flex grid 6.25 GHz spacing and 12.5 GHz width into fixed grid OCh signal.
|
static java.util.SortedSet<OchSignal> |
toFlexGrid(OchSignal ochSignal)
Convert fixed grid OCh signal to sorted set of flex grid slots with 6.25 GHz spacing and 12.5 GHz slot width.
|
java.lang.String |
toString() |
public static final java.util.Set<java.lang.Integer> FIXED_GRID_SLOT_GRANULARITIES
public OchSignal(GridType gridType, ChannelSpacing channelSpacing, int spacingMultiplier, int slotGranularity)
Lambda.ochSignal(GridType, ChannelSpacing, int, int)
unless you want to use the concrete type, OchSignal, directly.gridType - grid typechannelSpacing - channel spacingspacingMultiplier - channel spacing multiplierslotGranularity - slot width granularity@Deprecated public OchSignal(Frequency centerFrequency, ChannelSpacing channelSpacing, int slotGranularity)
centerFrequency - frequencychannelSpacing - spacingslotGranularity - granularitypublic static OchSignal newFlexGridSlot(int index)
OchSignal representing a flex grid frequency slot.index - slot index (relative to "the center frequency" 193.1THz)OchSignalpublic static OchSignal newDwdmSlot(ChannelSpacing spacing, int index)
OchSignal representing a fixed DWDM frequency slot.spacing - channel spacingindex - slot index (relative to "the center frequency" 193.1THz)OchSignalpublic GridType gridType()
public ChannelSpacing channelSpacing()
public int spacingMultiplier()
public int slotGranularity()
public Frequency centralFrequency()
public Frequency slotWidth()
public static java.util.SortedSet<OchSignal> toFlexGrid(OchSignal ochSignal)
ochSignal - fixed grid lambdapublic static OchSignal toFixedGrid(java.util.List<OchSignal> lambdas, ChannelSpacing spacing)
lambdas - list of flex grid lambdas in sorted orderspacing - desired fixed grid spacingpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object