game.protocol
Class Request

java.lang.Object
  extended by game.protocol.Request
Direct Known Subclasses:
AllRequest, ControlRequest, EndRequest, QuitRequest, SOCCER2008Request, WantSideRequest

public abstract class Request
extends java.lang.Object

Abstraction of all requests that might come from a team. There is one type of feedback request and several types of command requests all of which extend this type.


Nested Class Summary
static class Request.RequestType
           
 
Field Summary
protected static java.util.logging.Logger log
          Most log messages are for simulator.
protected static java.util.logging.Logger mClientLog
          Log to mClientLog when request is being constructed on team
protected  Request.RequestType mType
          The request type.
 
Constructor Summary
Request()
           
 
Method Summary
static Request factory(java.lang.String req)
          Factory for all requests.
 Request.RequestType getType()
          Get the type of this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mType

protected Request.RequestType mType
The request type.


log

protected static java.util.logging.Logger log
Most log messages are for simulator.


mClientLog

protected static java.util.logging.Logger mClientLog
Log to mClientLog when request is being constructed on team

Constructor Detail

Request

public Request()
Method Detail

factory

public static Request factory(java.lang.String req)
                       throws ParseException
Factory for all requests.

Parameters:
req - request text
Throws:
ParseException

getType

public Request.RequestType getType()
Get the type of this request.

Returns:
the type of this request