-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathState.cc
More file actions
86 lines (59 loc) · 1.46 KB
/
State.cc
File metadata and controls
86 lines (59 loc) · 1.46 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright (c) 2008 National ICT Australia Limited (NICTA)
//
// Author: Charles Gretton (charles.gretton@nicta.com.au)
//
// Redistribution and use in source and binary forms, with or without
// modification and only for non-commercial research and educational
// purposes are permitted provided that the conditions in the
// accompanying file "licence.txt" are met.
#include "State.hh"
#include "State_templates.hh"
using namespace Planning;
namespace STATE__Nonsense
{
void foo()
{
uint ii;
State<Planning::GroundAction> _state(ii);
State<> state(5);
State<>* tmp = new State<>(ii);
delete tmp;
State<> _tmp(state);
tmp->operator==(_tmp);
tmp->operator<(_tmp);
hash_value(state);
state.hash_value();
state = *tmp;
uint i;
vector<ELEM_TYPE> svec;
state.flipOn(i);
state.flipOff(i);
state.flip(i);
state.isTrue(i) ;
state.isFalse(i);
state.getTime();
state.setTime(i);
GroundAction* action;
//state.expand();
state.execute(*action);
vector<GroundAction> vAct;
State<>::MapStatePointerToUint maps;
maps[tmp] = 5;
state.ComputePossibleActions(vAct);
state.UpdatePossibleActions();
state.actionYields(i, tmp);
state.setParent(tmp);
state.possible(*action);
state.isGoal_positive(svec);
state.isGoal_negative(svec);
state.randomize();
state.hash_value();
state.getNumPropositions();
state.mimick(svec);
state.size();
state.getData();
hash_value(state);
ostringstream oss;
oss<<state;
}
}