tuwien.auto.calimero.link.medium
Class RawAckBase

java.lang.Object
  extended by tuwien.auto.calimero.link.medium.RawAckBase
All Implemented Interfaces:
RawFrame
Direct Known Subclasses:
PL110Ack, PL132Ack, TP1Ack

public abstract class RawAckBase
extends java.lang.Object
implements RawFrame

Implementation of common functionality for raw acknowledge frames.

Objects of this type are considered immutable.


Field Summary
protected  int ack
          Type of acknowledge transmitted with this frame.
static int ACK
          Positive acknowledge type.
static int NAK
          Negative acknowledge type.
 
Fields inherited from interface tuwien.auto.calimero.link.medium.RawFrame
ACK_FRAME, LDATA_FRAME, LPOLLDATA_FRAME
 
Constructor Summary
RawAckBase()
           
 
Method Summary
 int getAckType()
          Returns the type of acknowledge transmitted with this frame.
 int getFrameType()
          Returns the type of this frame.
 java.lang.String toString()
          Returns a textual representation of the acknowledge frame information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ack

protected int ack
Type of acknowledge transmitted with this frame.


ACK

public static final int ACK
Positive acknowledge type.

See Also:
getAckType(), Constant Field Values

NAK

public static final int NAK
Negative acknowledge type.

See Also:
getAckType(), Constant Field Values
Constructor Detail

RawAckBase

public RawAckBase()
Method Detail

getAckType

public final int getAckType()
Returns the type of acknowledge transmitted with this frame.

Returns:
type of acknowledge

getFrameType

public final int getFrameType()
Description copied from interface: RawFrame
Returns the type of this frame.

Specified by:
getFrameType in interface RawFrame
Returns:
unsigned frame type identifier

toString

public java.lang.String toString()
Returns a textual representation of the acknowledge frame information.

Overrides:
toString in class java.lang.Object
Returns:
string representation of the object