Class HdlcAddress
- java.lang.Object
-
- org.openmuc.jdlms.sessionlayer.hdlc.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 messageboolean
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 clientboolean
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()
-
-
-
Method Detail
-
getLogicalId
public int getLogicalId()
-
getPhysicalId
public int getPhysicalId()
-
getLength
public int getLength()
-
encode
public byte[] encode()
-
decode
public static HdlcAddress decode(byte[] data, int length) throws FrameInvalidException
- Throws:
FrameInvalidException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-