org.jogre.comm
Class CommChatBroadcast

java.lang.Object
  |
  +--org.jogre.comm.CommChatBroadcast
All Implemented Interfaces:
ITransmittable
Direct Known Subclasses:
CommChatPrivate, CommChatTable

public class CommChatBroadcast
extends Object
implements ITransmittable

Communication class which is used to broadcast a chat message to all users.

Version:
Alpha 0.1
Author:
Bob Marks

Field Summary
protected  String message
           
protected static int MIN_TOKENS
           
protected  String usernameFrom
           
 
Constructor Summary
protected CommChatBroadcast()
           
  CommChatBroadcast(String inString)
          Constructor which creates a CommChatBroadcast object from the flatten () method of another CommChatBroadcast object.
  CommChatBroadcast(String usernameFrom, String message)
          A CommMessage.BroadCast is a ...
 
Method Summary
 String flatten()
          Transmittable String representation of this object.
 String getMessage()
           
 String getUsernameFrom()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_TOKENS

protected static final int MIN_TOKENS

usernameFrom

protected String usernameFrom

message

protected String message
Constructor Detail

CommChatBroadcast

protected CommChatBroadcast()

CommChatBroadcast

public CommChatBroadcast(String usernameFrom,
                         String message)
A CommMessage.BroadCast is a ...
Parameters:
usernameFrom -  
message -  

CommChatBroadcast

public CommChatBroadcast(String inString)
                  throws TransmissionException
Constructor which creates a CommChatBroadcast object from the flatten () method of another CommChatBroadcast object.
Parameters:
inString -  
Throws:
TransmissionException -  
Method Detail

flatten

public String flatten()
Transmittable String representation of this object.
Specified by:
flatten in interface ITransmittable
See Also:
ITransmittable.flatten()

getMessage

public String getMessage()

getUsernameFrom

public String getUsernameFrom()