-
Notifications
You must be signed in to change notification settings - Fork 6
/
Increase.h
52 lines (33 loc) · 973 Bytes
/
Increase.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
46
47
48
49
50
51
52
#ifndef _INCREASE_H_
#define _INCREASE_H_
#include "Ground.h"
// RIGHT NOW ONLY INCREASES TOTAL-COST !!!
class Increase : public Condition {
public:
int value;
Ground * ground;
Increase( int val = 1 )
: value( val ), ground( 0 ) {}
Increase( Function * f, const IntVec & p = IntVec() )
: value( 0 ), ground( new Ground( f, p ) ) {}
Increase( const Increase * i, Domain & d );
~Increase() {
if ( ground ) delete ground;
}
void print( std::ostream & s ) const {
s << "Increase ";
if ( ground ) ground->print( s );
else s << value;
s << "\n";
}
void PDDLPrint( std::ostream & s, unsigned indent, const TokenStruct< std::string > & ts, Domain & d );
void parse( Filereader & f, TokenStruct< std::string > & ts, Domain & d );
void SHOPparse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ){
}
void addParams( int m, unsigned n ) {
}
Condition * copy( Domain & d ) {
return new Increase( this, d );
}
};
#endif