protocol.core
Class Frame

java.lang.Object
  extended by protocol.core.Frame
Direct Known Subclasses:
ApplicationFrame, HandshakeFrame, SignalFrame

public class Frame
extends java.lang.Object

Classe do frame do protocolo

Author:
Leonardo Fernandes

Field Summary
static byte APPLICATION
          Código de identificação do APPLICATION frame
static byte HANDSHAKE
          Código de identificação do HANDSHAKE frame
static byte SIGNAL
          Código de identificação do SIGNAL frame
 
Constructor Summary
Frame(byte id, int length)
           
 
Method Summary
 byte getId()
           
 int getLength()
           
 void setId(byte id)
           
 void setLength(int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDSHAKE

public static final byte HANDSHAKE
Código de identificação do HANDSHAKE frame

See Also:
Constant Field Values

SIGNAL

public static final byte SIGNAL
Código de identificação do SIGNAL frame

See Also:
Constant Field Values

APPLICATION

public static final byte APPLICATION
Código de identificação do APPLICATION frame

See Also:
Constant Field Values
Constructor Detail

Frame

public Frame(byte id,
             int length)
Method Detail

getId

public byte getId()

setId

public void setId(byte id)

getLength

public int getLength()

setLength

public void setLength(int length)