Modifier and Type | Field and Description |
---|---|
static Set<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(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(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 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.
|
String |
toString() |
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)OchSignal
public 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)OchSignal
public GridType gridType()
public ChannelSpacing channelSpacing()
public int spacingMultiplier()
public int slotGranularity()
public Frequency centralFrequency()
public Frequency slotWidth()
public static SortedSet<OchSignal> toFlexGrid(OchSignal ochSignal)
ochSignal
- fixed grid lambdapublic static OchSignal toFixedGrid(List<OchSignal> lambdas, ChannelSpacing spacing)
lambdas
- list of flex grid lambdas in sorted orderspacing
- desired fixed grid spacing