Develop and Download Open Source Software

Browse Subversion Repository

Contents of /simulator/tRunCtrlSimulator.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations) (download) (as text)
Fri Jan 4 02:49:36 2008 UTC (16 years, 3 months ago) by satofumi
File MIME type: text/x-chdr
File size: 1270 byte(s)
using namespace beego

1 #ifndef T_RUN_CTRL_SIMULATOR_H
2 #define T_RUN_CTRL_SIMULATOR_H
3
4 /*!
5 \file
6 \brief 走行制御シミュレータ
7
8 \author Satofumi KAMIMURA
9
10 $Id$
11 */
12
13 #include <memory>
14 #include "SimulatorInterface.h"
15 #include "GridTypes.h"
16
17
18 namespace beego {
19 class ConnectionInterface;
20
21 /*!
22 \brief 走行制御シミュレータ
23 */
24 class tRunCtrlSimulator : public SimulatorInterface {
25 tRunCtrlSimulator(const tRunCtrlSimulator& rhs);
26 tRunCtrlSimulator& operator = (const tRunCtrlSimulator& rhs);
27
28 struct pImpl;
29 const std::auto_ptr<pImpl> pimpl;
30
31 public:
32 // !!! サンプルで、ここに直接 Accept の結果を渡す、のはよくないな
33 // やっぱり。接続失敗することもあるし
34 tRunCtrlSimulator(void);
35 ~tRunCtrlSimulator(void);
36
37 // !!! 多分、そのうちに共通インターフェースに含める
38 const char* what(void);
39 void activate(void);
40 void runMainTask(void);
41
42 bool connect(ConnectionInterface* con);
43
44 //SimulatorInterface* getObject(void);
45
46 void reset(void);
47 void powerOff(void);
48 void powerOn(void);
49
50 // !!! 上記までが、共通かな?
51
52 // 持ち上げて移動させる場合
53 void setPosition(Position<int>& position);
54
55 // 引きずって移動させる場合
56 void trailToPosition(Position<int>& position);
57 };
58 };
59
60 #endif /* !T_RUN_CTRL_SIMULATOR_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26