game.protocol
Class Reply

java.lang.Object
  extended by game.protocol.Reply
Direct Known Subclasses:
AllReply, ControlReply, EndReply, GoalReply, OnSideReply, QuitReply, ResetReply, SOCCER2008Reply

public abstract class Reply
extends java.lang.Object

Abstraction of all replies that might come from the simulator. There is almost nothing in common among the reply types, but any one of them might result from a message to the simulator, so they are all extensions of this type.


Nested Class Summary
static class Reply.ReplyType
           
 
Field Summary
protected static java.util.logging.Logger log
          Most log messages go here
protected static java.util.logging.Logger mServerLog
          Log in mServerLog when the Reply is being constructed on the simulator side.
protected  Reply.ReplyType mType
          The reply type.
 
Constructor Summary
Reply()
           
 
Method Summary
static Reply factory(java.lang.String msg)
          Factory for all replies.
 Reply.ReplyType getType()
          Get the type of this reply.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mType

protected Reply.ReplyType mType
The reply type.


log

protected static java.util.logging.Logger log
Most log messages go here


mServerLog

protected static java.util.logging.Logger mServerLog
Log in mServerLog when the Reply is being constructed on the simulator side.

Constructor Detail

Reply

public Reply()
Method Detail

factory

public static Reply factory(java.lang.String msg)
                     throws ParseException
Factory for all replies.

Parameters:
msg - message text
Throws:
ParseException - message is incorrectly formatted.

getType

public Reply.ReplyType getType()
Get the type of this reply.

Returns:
the type of this reply