クラス rcsc::SoccerAgent

abstract soccer agent class [詳細]

#include <soccer_agent.h>

rcsc::SoccerAgentに対する継承グラフ

rcsc::CoachAgent rcsc::PlayerAgent rcsc::TrainerAgent すべてのメンバ一覧

Public メソッド

 SoccerAgent ()
 nothing to do. just set NULL to M_client
virtual ~SoccerAgent ()
 virtual destructor.
bool init (BasicClient *client, const int argc, const char *const *argv)
 initialize with command line options.

Protected メソッド

virtual bool initImpl (CmdLineParser &cmd_parser)=0
 init interval status using command line options
virtual bool handleStart ()=0
 (pure virtual) handle start event
virtual void handleMessage ()=0
 (pure virtual) handle server messege
virtual void handleTimeout (const int timeout_count, const int waited_msec)=0
 (pure virtual) handle timeout event
virtual void handleExit ()=0
 (pure virtual) handle exit event

Protected 変数

BasicClientM_client
 interface to the rcssserver

フレンド

class BasicClient

説明

abstract soccer agent class

This class supplies:


関数

bool rcsc::SoccerAgent::init ( BasicClient client,
const int  argc,
const char *const *  argv 
)

initialize with command line options.

引数:
client pointer to the client instance
argc number of options.
argv array of option string.
戻り値:
initialization result of the derived class.
Connection must be created after this method. You should specify the server host name, port number and wait interval msec in doInit() virtual method in the derived class. (init) commad is sent in run() method. So,do not call it yourself!

virtual bool rcsc::SoccerAgent::initImpl ( CmdLineParser cmd_parser  )  [protected, pure virtual]

init interval status using command line options

引数:
cmd_parser command line parser object
戻り値:
derived class should return the status of initialization result.
This method is called from init(argc,argv); This method must be overrided in the derived class.

rcsc::CoachAgentrcsc::PlayerAgentrcsc::TrainerAgentで実装されています。

virtual bool rcsc::SoccerAgent::handleStart (  )  [protected, pure virtual]

(pure virtual) handle start event

戻り値:
status of start procedure.
This method is called on the top of BasicClient::run() method. The concrete agent must connect to the server and send init command. Do NOT call this method by yourself!

rcsc::CoachAgentrcsc::PlayerAgentrcsc::TrainerAgentで実装されています。

virtual void rcsc::SoccerAgent::handleMessage (  )  [protected, pure virtual]

(pure virtual) handle server messege

This method is called when server message is arrived.

rcsc::CoachAgentrcsc::PlayerAgentrcsc::TrainerAgentで実装されています。

virtual void rcsc::SoccerAgent::handleTimeout ( const int  timeout_count,
const int  waited_msec 
) [protected, pure virtual]

(pure virtual) handle timeout event

引数:
timeout_count count of timeout without sensory message.
waited_msec elapsed milli seconds sinc last sensory message.
This method is called when select() timeout occurs

rcsc::CoachAgentrcsc::PlayerAgentrcsc::TrainerAgentで実装されています。

virtual void rcsc::SoccerAgent::handleExit (  )  [protected, pure virtual]

(pure virtual) handle exit event

This method is called when client estimates server is not alive.

rcsc::CoachAgentrcsc::PlayerAgentrcsc::TrainerAgentで実装されています。


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:25 2008に生成されました。  doxygen 1.5.0