Scheduler
stateSpaceTest.h
Go to the documentation of this file.
1 
11 #include <stdexcept>
12 #include <memory>
13 
14 #include <gtest/gtest.h>
15 #include <mdp/stateSpace.h>
17 #include <mdp/priorityState.h>
18 #include <mdp/stateSpaceBuilder.h>
19 #include <mdp/domainModel.h>
20 #include "../state.h"
21 
22 class Prio : public Mdp::PriorityState
23 {
24 public:
25  std::string getName() override {return "";};
26  bool isInState() override {return inState;};
27  bool inState{false};
28 };
29 
31 {
32 public:
33  std::string getName() override {return "";};
34  Mdp::statePosition_t getPosition() override {return position;};
35  Mdp::statePosition_t position{0};
36  size_t getNumberOfPositions() override {return nbOfPositions;};
37  size_t nbOfPositions{2};
38 };
39 
41 {
42 public:
43  double measureReward() override {return 3.14;};
44 };
45 
48 
49 double expectedReward = 3.14;
std::string getName() override
returns the name of that dimension
Dimension * dim2
Mdp::statePosition_t getPosition() override
gets the position of the state along that dimension
Prio * prio2
bool isInState() override
Given the information provided by the DomainModel, this function checks if the system is in that stat...
double measureReward() override
bool inState
std::string getName() override
returns the name of that state
size_t getNumberOfPositions() override
returns the number of possible positions along that dimension
Prio * prio1
double expectedReward
Dimension * dim3
int statePosition_t
a single state of the state space
Definition: priorityState.h:31
this models a dimension in the state space.
Dimension * dim1