Package org.onosproject.net
Class OduSignalId
- java.lang.Object
-
- org.onosproject.net.OduSignalId
-
public class OduSignalId extends java.lang.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 int
TRIBUTARY_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 boolean
equals(java.lang.Object obj)
int
hashCode()
static OduSignalId
oduSignalId(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)
Returns the OduSignalId representing the specified parameters.java.lang.String
toString()
int
tributaryPortNumber()
Returns tributary port number.byte[]
tributarySlotBitmap()
Returns tributary slot bitmap.int
tributarySlotLength()
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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-