Scheduler
builder.cpp
Go to the documentation of this file.
1 
10 #include "builder.h"
11 
12 using namespace Mdp;
13 
14 Builder::Builder(std::shared_ptr<DomainModel> model)
15 {
16  aBuilder.setDomainModel(model);
17  sBuilder.setDomainModel(model);
18 }
19 
21 {
22  aBuilder.addAction(action);
23 }
24 
25 std::shared_ptr<ActionSpace> Builder::getActionSpace()
26 {
27  return aBuilder.getActionSpace();
28 }
29 
31 {
32  sBuilder.addPriorityState(state);
33 }
34 
36 {
37  sBuilder.addDimension(dim);
38 }
39 
40 std::shared_ptr<StateSpace> Builder::getStateSpace()
41 {
42  return sBuilder.getStateSpace();
43 }
44 
46 {
47  aBuilder.addActionDimension(dim);
48 }
void setDomainModel(std::shared_ptr< DomainModel > model)
sets the domain model used by the state space to determine current state
void setDomainModel(std::shared_ptr< DomainModel > model)
sets the domain model used by the actions to act on the environment
void addAction(Action *action)
add an action to the actino space
std::shared_ptr< ActionSpace > getActionSpace()
Definition: builder.cpp:25
std::shared_ptr< StateSpace > getStateSpace()
call this function last!
std::shared_ptr< ActionSpace > getActionSpace()
get the action space
void addPriorityState(PriorityState *state)
Definition: builder.cpp:30
void addDimension(StateSpaceDimension *dimension)
adds a dimension to the state space
void addAction(Action *action)
Definition: builder.cpp:20
Builder(std::shared_ptr< DomainModel > domainModel)
Definition: builder.cpp:14
void addActionDimension(ActionDimension *)
void addDimension(StateSpaceDimension *dimension)
Definition: builder.cpp:35
Definition: action.h:18
void addPriorityState(PriorityState *)
adds single states to the state space
void addActionDimension(ActionDimension *dim)
Definition: builder.cpp:45
a single state of the state space
Definition: priorityState.h:31
this models a dimension in the state space.
std::shared_ptr< StateSpace > getStateSpace()
Definition: builder.cpp:40