com.enderak.procol.common.net
Class MessageFactory

java.lang.Object
  |
  +--java.util.Observable
        |
        +--com.enderak.procol.common.util.EnhancedObservable
              |
              +--com.enderak.procol.common.net.MessageFactory

public class MessageFactory
extends EnhancedObservable

Compiles packets into messages

Author:
Justin Dieters

Constructor Summary
MessageFactory()
          Constructor for the MessageFactory object
 
Method Summary
 void addPacket(ProColPacket packetIn)
          Adds a packet to the appropriate message
 ProColIncomingMessage getNext()
          Gets the next Packet
 boolean hasNext()
          Checks the message queue for more messages
 
Methods inherited from class com.enderak.procol.common.util.EnhancedObservable
forceNotify, forceNotify
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFactory

public MessageFactory()
Constructor for the MessageFactory object

Method Detail

addPacket

public void addPacket(ProColPacket packetIn)
Adds a packet to the appropriate message

Parameters:
packetIn -

getNext

public ProColIncomingMessage getNext()
Gets the next Packet

Returns:
The next Packet

hasNext

public boolean hasNext()
Checks the message queue for more messages

Returns:
true if there are more messages in the queue