Package org.onosproject.net
Class OduSignalUtils
- java.lang.Object
-
- org.onosproject.net.OduSignalUtils
-
public final class OduSignalUtils extends java.lang.Object
Collection of helper methods to convert various SignalTypes to OduSignalType, and to build OduSignalId.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OduSignalId
buildOduSignalId(OduSignalType oduSignalType, java.util.Set<TributarySlot> slots)
Creates OduSignalId from OduSignalType and TributarySlots.static OduSignalType
mappingCltSignalTypeToOduSignalType(CltSignalType cltSignalType)
Maps from OduClt SignalType to OduSignalType.static OduSignalType
mappingOtuSignalTypeToOduSignalType(OtuSignalType otuSignalType)
Maps from OtuPort SignalType to OduSignalType.
-
-
-
Method Detail
-
mappingCltSignalTypeToOduSignalType
public static OduSignalType mappingCltSignalTypeToOduSignalType(CltSignalType cltSignalType)
Maps from OduClt SignalType to OduSignalType.- Parameters:
cltSignalType
- OduClt port signal type- Returns:
- OduSignalType the result of mapping CltSignalType to OduSignalType
-
mappingOtuSignalTypeToOduSignalType
public static OduSignalType mappingOtuSignalTypeToOduSignalType(OtuSignalType otuSignalType)
Maps from OtuPort SignalType to OduSignalType.- Parameters:
otuSignalType
- Otu port signal type- Returns:
- OduSignalType the result of mapping OtuSignalType to OduSignalType
-
buildOduSignalId
public static OduSignalId buildOduSignalId(OduSignalType oduSignalType, java.util.Set<TributarySlot> slots)
Creates OduSignalId from OduSignalType and TributarySlots.- Parameters:
oduSignalType
- - OduSignalTypeslots
- - a set of TributarySlots- Returns:
- OduSignalId
-
-