Class OduSignalId


  • public class OduSignalId
    extends java.lang.Object
    Implementation of ODU Signal ID.

    See ITU G.709 "Interfaces for the Optical Transport Network (OTN)".

    • Constructor Summary

      Constructors 
      Constructor Description
      OduSignalId​(int tributaryPortNumber, int tributarySlotLen, byte[] tributarySlotBitmap)
      Creates an instance with the specified arguments.
    • 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 number
        tributarySlotLen - tributary slot len
        tributarySlotBitmap - 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 number
        tributarySlotLen - tributary slot len
        tributarySlotBitmap - 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object