Class HdlcAddress


  • public class HdlcAddress
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HdlcAddress.ReservedAddresses
      HdlcAddresses with special meanings.
    • Constructor Summary

      Constructors 
      Constructor Description
      HdlcAddress​(int logicalId)  
      HdlcAddress​(int logicalId, int physicalId)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static HdlcAddress decode​(byte[] data, int length)  
      byte[] encode()  
      boolean equals​(java.lang.Object o)  
      int getLength()  
      int getLogicalId()  
      int getPhysicalId()  
      int hashCode()  
      boolean isAllStation()
      Checks if the HdlcAddress is a reserved broadcast address Reserved broadcast addresses may never be the source of a message
      boolean isCalling()
      Checks if the HdlcAddress is a reserved calling station address Reserved calling station addresses may only be sent from the server to send an event to the client
      boolean isNoStation()
      Checks if the HdlcAddress is a reserved no station address Reserved no station addresses may never be the source of a message.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HdlcAddress

        public HdlcAddress​(int logicalId)
      • HdlcAddress

        public HdlcAddress​(int logicalId,
                           int physicalId)
    • Method Detail

      • getLogicalId

        public int getLogicalId()
      • getPhysicalId

        public int getPhysicalId()
      • getLength

        public int getLength()
      • encode

        public byte[] encode()
      • toString

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

        public boolean isAllStation()
        Checks if the HdlcAddress is a reserved broadcast address Reserved broadcast addresses may never be the source of a message
        Returns:
        true if the address is a broadcast address
      • isNoStation

        public boolean isNoStation()
        Checks if the HdlcAddress is a reserved no station address Reserved no station addresses may never be the source of a message.
        Returns:
        true if the address is a no station address
      • isCalling

        public boolean isCalling()
        Checks if the HdlcAddress is a reserved calling station address Reserved calling station addresses may only be sent from the server to send an event to the client
        Returns:
        true if the address is a calling station address
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object