ProgrammierMethodik 2002 - RoboCup

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

RCParser Class Reference

This class parse all messages from the server. More...

Inheritance diagram for RCParser::

RCEventType RCSender RCType RCView RCPlayMode List of all members.

Public Methods

 RCParser (String TeamName)
 Constructor. More...

void pushMessage (String Command, RCWorld World)
 Operation. More...

void parseServerParam (String Message, RCWorld World)
 Parse a server param message from the server and deliver the result to the world. More...

void parsePlayerParam (String Message, RCWorld World)
 Parse a player param message from the server and deliver the result to the world. More...

void parsePlayerType (String Message, RCWorld World)
 Parse a player type message from the server and deliver the result to the world. More...

void parseHear (String Message, RCWorld World)
 Parse a server param message from the server and deliver the result to the world. More...

void parseSee (String Message, RCWorld World)
 Parse a see message from the server and deliver the result to the world. More...

void parseSenseBody (String Message, RCWorld World)
 Parse a sence body message from the server and deliver the result to the world. More...


Private Attributes

final String ServerParam = "(server_param "
final String PlayerType = "(player_type "
final String PlayerParam = "(player_param "
final String Hear = "(hear "
final String See = "(see "
final String SenceBody = "(sense_body "
String TeamName
 Teamname. More...

int OldTimeStamp

Detailed Description

This class parse all messages from the server.

It creates a list of the corresponding events the will be delivered to the World object.

Definition at line 55 of file RCParser.java.


Constructor & Destructor Documentation

RCParser::RCParser ( String TeamName ) [inline]
 

Constructor.

Definition at line 73 of file RCParser.java.


Member Function Documentation

void RCParser::parseHear ( String Message,
RCWorld World ) [inline]
 

Parse a server param message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 312 of file RCParser.java.

void RCParser::parsePlayerParam ( String Message,
RCWorld World ) [inline]
 

Parse a player param message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 241 of file RCParser.java.

void RCParser::parsePlayerType ( String Message,
RCWorld World ) [inline]
 

Parse a player type message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 280 of file RCParser.java.

void RCParser::parseSee ( String Message,
RCWorld World ) [inline]
 

Parse a see message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 355 of file RCParser.java.

void RCParser::parseSenseBody ( String Message,
RCWorld World ) [inline]
 

Parse a sence body message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 765 of file RCParser.java.

void RCParser::parseServerParam ( String Message,
RCWorld World ) [inline]
 

Parse a server param message from the server and deliver the result to the world.

Parameters:
Message   message to parse
world   ref. to world

Definition at line 117 of file RCParser.java.

void RCParser::pushMessage ( String Command,
RCWorld World ) [inline]
 

Operation.

Parameters:
Command   message received from server
World   ref. to world

Definition at line 84 of file RCParser.java.

Referenced by RCCommunicator::receive().


Member Data Documentation

final String RCParser::Hear = "(hear " [private]
 

Definition at line 62 of file RCParser.java.

int RCParser::OldTimeStamp [private]
 

Definition at line 68 of file RCParser.java.

final String RCParser::PlayerParam = "(player_param " [private]
 

Definition at line 61 of file RCParser.java.

final String RCParser::PlayerType = "(player_type " [private]
 

Definition at line 60 of file RCParser.java.

final String RCParser::See = "(see " [private]
 

Definition at line 63 of file RCParser.java.

final String RCParser::SenceBody = "(sense_body " [private]
 

Definition at line 64 of file RCParser.java.

final String RCParser::ServerParam = "(server_param " [private]
 

Definition at line 59 of file RCParser.java.

String RCParser::TeamName [private]
 

Teamname.

Definition at line 66 of file RCParser.java.


The documentation for this class was generated from the following file:
(c) Copyright by Gruppe 1 :