Package org.onosproject.net
Class OduSignalId
- java.lang.Object
-
- org.onosproject.net.OduSignalId
-
public class OduSignalId extends Object
Implementation of ODU Signal ID.See ITU G.709 "Interfaces for the Optical Transport Network (OTN)".
-
-
Field Summary
Fields Modifier and Type Field Description static intTRIBUTARY_SLOT_BITMAP_SIZE
-
Constructor Summary
Constructors Constructor Description OduSignalId(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)Creates an instance with the specified arguments.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()static OduSignalIdoduSignalId(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)Returns the OduSignalId representing the specified parameters.StringtoString()inttributaryPortNumber()Returns tributary port number.byte[]tributarySlotBitmap()Returns tributary slot bitmap.inttributarySlotLength()Returns tributary slot length.
-
-
-
Field Detail
-
TRIBUTARY_SLOT_BITMAP_SIZE
public static final int TRIBUTARY_SLOT_BITMAP_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OduSignalId
public OduSignalId(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)Creates an instance with the specified arguments.- Parameters:
tributaryPortNumber- tributary port numbertributarySlotLen- tributary slot lentributarySlotBitmap- tributary slot bitmap
-
-
Method Detail
-
oduSignalId
public static OduSignalId oduSignalId(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)
Returns the OduSignalId representing the specified parameters.- Parameters:
tributaryPortNumber- tributary port numbertributarySlotLen- tributary slot lentributarySlotBitmap- tributary slot bitmap- Returns:
- OduSignalId
-
tributaryPortNumber
public int tributaryPortNumber()
Returns tributary port number.- Returns:
- the tributaryPortNumber
-
tributarySlotLength
public int tributarySlotLength()
Returns tributary slot length.- Returns:
- the tributarySlotLen
-
tributarySlotBitmap
public byte[] tributarySlotBitmap()
Returns tributary slot bitmap.- Returns:
- the tributarySlotBitmap
-
-