coach_config.h

説明を見る。
00001 // -*-c++-*-
00002 
00008 /*
00009  *Copyright:
00010 
00011  Copyright (C) Hidehisa AKIYAMA
00012 
00013  This code is free software; you can redistribute it and/or
00014  modify it under the terms of the GNU Lesser General Public
00015  License as published by the Free Software Foundation; either
00016  version 2.1 of the License, or (at your option) any later version.
00017 
00018  This library is distributed in the hope that it will be useful,
00019  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  Lesser General Public License for more details.
00022 
00023  You should have received a copy of the GNU Lesser General Public
00024  License along with this library; if not, write to the Free Software
00025  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 
00027  *EndCopyright:
00028  */
00029 
00031 
00032 #ifndef RCSC_COACH_CONFIG_H
00033 #define RCSC_COACH_CONFIG_H
00034 
00035 #include <string>
00036 
00037 namespace rcsc {
00038 
00039 class ParamMap;
00040 
00045 class CoachConfig {
00046 private:
00047 
00048     // basic setting
00049 
00050     std::string M_team_name; 
00051     std::string M_coach_name; 
00052     double      M_version; 
00053 
00055     bool M_use_coach_name;
00056 
00058     int M_interval_msec;
00060     int M_server_wait_seconds;
00061 
00063     std::string M_rcssserver_host;
00065     int M_rcssserver_port;
00066 
00068     int M_compression;
00069 
00071     bool M_use_eye;
00072 
00074     bool M_hear_say;
00075 
00077     bool M_analyze_player_type;
00078 
00080     bool M_use_advise;
00082     bool M_use_freeform;
00083 
00085     bool M_use_hetero;
00086 
00088     bool M_use_team_graphic;
00089 
00091     int M_max_team_graphic_per_cycle;
00092 
00093     //
00094     // debug
00095     //
00096 
00098     std::string M_log_dir;
00099 
00101     std::string M_log_ext;
00102 
00103     // debug outut switches
00104     bool M_debug; 
00105     bool M_debug_system;
00106     bool M_debug_sensor;
00107     bool M_debug_world;
00108     bool M_debug_action;
00109     bool M_debug_intercept;
00110     bool M_debug_kick;
00111     bool M_debug_dribble;
00112     bool M_debug_pass;
00113     bool M_debug_cross;
00114     bool M_debug_shoot;
00115     bool M_debug_clear;
00116     bool M_debug_team;
00117     bool M_debug_role;
00118 public:
00119 
00123     CoachConfig();
00124 
00128     ~CoachConfig();
00129 
00134     void createParamMap( ParamMap & param_map );
00135 
00136 private:
00140     void setDefaultParam();
00141 
00142 public:
00143 
00144     // basic settings
00145 
00146     const
00147     std::string & teamName() const
00148       {
00149           return M_team_name;
00150       }
00151     const
00152     double & version() const
00153       {
00154           return M_version;
00155       }
00156     const
00157     std::string & coachName() const
00158       {
00159           return M_coach_name;
00160       }
00161 
00162     bool useCoachName() const
00163       {
00164           return M_use_coach_name;
00165       }
00166 
00167     int intervalMSec() const
00168       {
00169           return M_interval_msec;
00170       }
00171 
00172     int serverWaitSeconds() const
00173       {
00174           return M_server_wait_seconds;
00175       }
00176 
00177     const
00178     std::string & host() const
00179       {
00180           return M_rcssserver_host;
00181       }
00182 
00183     int port() const
00184       {
00185           return M_rcssserver_port;
00186       }
00187 
00188     int compression() const
00189       {
00190           return M_compression;
00191       }
00192 
00193     bool useEye() const
00194       {
00195           return M_use_eye;
00196       }
00197 
00198     bool hearSay() const
00199       {
00200           return M_hear_say;
00201       }
00202 
00203     bool analyzePlayerType() const
00204       {
00205           return M_analyze_player_type;
00206       }
00207 
00208     bool useAdvise() const
00209       {
00210           return M_use_advise;
00211       }
00212 
00213     bool useFreeform() const
00214       {
00215           return M_use_freeform;
00216       }
00217 
00218 
00219     bool useHetero() const
00220       {
00221           return M_use_hetero;
00222       }
00223 
00224     bool useTeamGraphic() const
00225       {
00226           return M_use_team_graphic;
00227       }
00228 
00229     int maxTeamGraphicPerCycle() const
00230       {
00231           return M_max_team_graphic_per_cycle;
00232       }
00233 
00234 
00235     const
00236     std::string & logDir() const
00237       {
00238           return M_log_dir;
00239       }
00240 
00241     const
00242     std::string & logExt() const
00243       {
00244           return M_log_ext;
00245       }
00246 
00247     bool debug() const
00248       {
00249           return M_debug;
00250       }
00251 
00252     bool debugSystem() const
00253       {
00254           return M_debug_system;
00255       }
00256 
00257     bool debugSensor() const
00258       {
00259           return M_debug_sensor;
00260       }
00261 
00262     bool debugWorld() const
00263       {
00264           return M_debug_world;
00265       }
00266 
00267     bool debugAction() const
00268       {
00269           return M_debug_action;
00270       }
00271 
00272     bool debugIntercept() const
00273       {
00274           return M_debug_intercept;
00275       }
00276 
00277     bool debugKick() const
00278       {
00279           return M_debug_kick;
00280       }
00281 
00282     bool debugDribble() const
00283       {
00284           return M_debug_dribble;
00285       }
00286 
00287     bool debugPass() const
00288       {
00289           return M_debug_pass;
00290       }
00291 
00292     bool debugCross() const
00293       {
00294           return M_debug_cross;
00295       }
00296 
00297     bool debugShoot() const
00298       {
00299           return M_debug_shoot;
00300       }
00301 
00302     bool debugClear() const
00303       {
00304           return M_debug_clear;
00305       }
00306 
00307     bool debugTeam() const
00308       {
00309           return M_debug_team;
00310       }
00311 
00312     bool debugRole() const
00313       {
00314           return M_debug_role;
00315       }
00316 
00317 };
00318 
00319 }
00320 
00321 #endif

librcscに対してThu May 1 15:41:20 2008に生成されました。  doxygen 1.5.0