public class HdlcAddress
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HdlcAddress.ReservedAddresses
HdlcAddresses with special meanings.
|
Constructor and Description |
---|
HdlcAddress(int logicalId) |
HdlcAddress(int logicalId,
int physicalId) |
Modifier and Type | Method and 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() |
public HdlcAddress(int logicalId)
public HdlcAddress(int logicalId, int physicalId)
public int getLogicalId()
public int getPhysicalId()
public int getLength()
public byte[] encode() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static HdlcAddress decode(byte[] data, int length) throws FrameInvalidException
FrameInvalidException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isAllStation()
public boolean isNoStation()
public boolean isCalling()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object