forked from bonetblai/mini-gpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.h
45 lines (37 loc) · 1.01 KB
/
client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef CLIENT_H
#define CLIENT_H
#include "rational.h"
#include "strxml.h"
#include <iostream>
class Atom;
class Application;
class action_t;
class planner_t;
class problem_t;
class state_t;
/*******************************************************************************
*
* XML client
*
******************************************************************************/
class XMLClient_t
{
const problem_t *problem_;
planner_t *planner_;
int total_rounds_;
int rounds_left_;
float round_time_;
int round_turns_;
std::pair<state_t*,Rational> *display_;
public:
XMLClient_t( planner_t *planner, const problem_t *problem,
std::string name, std::istream &is, std::ostream &os );
~XMLClient_t();
const state_t* getState( XMLNodePtr stateNode );
const Atom* getAtom( XMLNodePtr atomNode );
const Application* getApplication( XMLNodePtr appNode );
void sendDone( std::ostream& os ) const;
void sendAction( std::ostream& os, const action_t *a ) const;
int doRound( void );
};
#endif // CLIENT_H