SSF.OS
Class PacketEvent

java.lang.Object
  |
  +--com.renesys.raceway.SSF.Event
        |
        +--SSF.OS.PacketEvent
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PacketEvent
extends com.renesys.raceway.SSF.Event

Wrapper class to turn a ProtocolMessage into an Event that can be sent on an SSF channel.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.renesys.raceway.SSF.Event
wWz, WWz, YWz, zWz, ZWz
 
Constructor Summary
PacketEvent()
          Create an empty PacketEvent with no headers.
PacketEvent(java.lang.Class pktclass)
          Create an instance of the given class, which must extend ProtocolMessage, and wrap it in a PacketEvent.
PacketEvent(ProtocolMessage msg)
          Create a PacketEvent wrapper for the given ProtocolMessage.
 
Method Summary
 void frombytes(byte[] buf)
          Deserialize a packet from a byte buffer.
 ProtocolMessage getHeaders()
          Return the protocol message (the packet headers) inside this PacketEvent.
 byte[] tobytes()
          Convert a packet into a byte buffer.
 
Methods inherited from class com.renesys.raceway.SSF.Event
aliased, release, save, WYW, zYW
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketEvent

public PacketEvent()
Create an empty PacketEvent with no headers.


PacketEvent

public PacketEvent(ProtocolMessage msg)
Create a PacketEvent wrapper for the given ProtocolMessage.


PacketEvent

public PacketEvent(java.lang.Class pktclass)
Create an instance of the given class, which must extend ProtocolMessage, and wrap it in a PacketEvent.

Method Detail

getHeaders

public ProtocolMessage getHeaders()
Return the protocol message (the packet headers) inside this PacketEvent.


frombytes

public void frombytes(byte[] buf)
Deserialize a packet from a byte buffer. Experimental.


tobytes

public byte[] tobytes()
Convert a packet into a byte buffer. Experimental.