@@ -20,17 +20,17 @@ m.doc() = "WLPlan: WL Features for PDDL Planning";
20
20
21
21
/* Planning */
22
22
auto planning_m = m.def_submodule (" planning" );
23
- auto atom = py::class_<planning::Atom>(planning_m, " Atom" , R"(
24
- Parameters
23
+ auto atom = py::class_<planning::Atom>(planning_m, " Atom" ,
24
+ R"( Parameters
25
25
----------
26
26
predicate : Predicate
27
27
Predicate object.
28
28
29
29
objects : List[Object]
30
30
List of object names.
31
31
)" );
32
- auto domain = py::class_<planning::Domain>(planning_m, " Domain" , R"(
33
- Parameters
32
+ auto domain = py::class_<planning::Domain>(planning_m, " Domain" ,
33
+ R"( Parameters
34
34
----------
35
35
name : str
36
36
Domain name.
@@ -41,20 +41,20 @@ Parameters
41
41
constant_objects : List[Object], optional
42
42
List of constant objects.
43
43
)" );
44
- auto object = py::class_<planning::Object>(planning_m, " Object" , R"(
45
- Object is a type alias for a str.
44
+ auto object = py::class_<planning::Object>(planning_m, " Object" ,
45
+ R"( Object is a type alias for a str.
46
46
)" );
47
- auto predicate = py::class_<planning::Predicate>(planning_m, " Predicate" , R"(
48
- Parameters
47
+ auto predicate = py::class_<planning::Predicate>(planning_m, " Predicate" ,
48
+ R"( Parameters
49
49
----------
50
50
name : str
51
51
Predicate name.
52
52
53
53
arity : int
54
54
Predicate arity.
55
55
)" );
56
- auto problem = py::class_<planning::Problem>(planning_m, " Problem" , R"(
57
- Parameters
56
+ auto problem = py::class_<planning::Problem>(planning_m, " Problem" ,
57
+ R"( Parameters
58
58
----------
59
59
domain : Domain
60
60
Domain object.
@@ -68,8 +68,8 @@ Parameters
68
68
negative_goals : List[Atom]
69
69
List of negative goal atoms.
70
70
)" );
71
- auto state = py::class_<planning::State>(planning_m, " State" , R"(
72
- State is a type alias for a list of Atoms.
71
+ auto state = py::class_<planning::State>(planning_m, " State" ,
72
+ R"( State is a type alias for a list of Atoms.
73
73
)" );
74
74
75
75
predicate
@@ -98,8 +98,8 @@ problem
98
98
99
99
/* Data */
100
100
auto data_m = m.def_submodule (" data" );
101
- auto dataset = py::class_<data::Dataset>(data_m, " Dataset" , R"(
102
- WLPlan dataset object.
101
+ auto dataset = py::class_<data::Dataset>(data_m, " Dataset" ,
102
+ R"( WLPlan dataset object.
103
103
104
104
Datasets contain a domain and a list of problem states.
105
105
@@ -111,8 +111,8 @@ Parameters
111
111
data : List[ProblemStates]
112
112
List of problem states.
113
113
)" );
114
- auto problem_states = py::class_<data::ProblemStates>(data_m, " ProblemStates" , R"(
115
- Stores a problem and training states for the problem.
114
+ auto problem_states = py::class_<data::ProblemStates>(data_m, " ProblemStates" ,
115
+ R"( Stores a problem and training states for the problem.
116
116
117
117
Upon initialisation, the problem and states are checked for consistency.
118
118
@@ -136,8 +136,8 @@ dataset
136
136
137
137
/* Graph */
138
138
auto graph_m = m.def_submodule (" graph" );
139
- auto graph = py::class_<graph::Graph>(graph_m, " Graph" , R"(
140
- WLPlan graph object.
139
+ auto graph = py::class_<graph::Graph>(graph_m, " Graph" ,
140
+ R"( WLPlan graph object.
141
141
142
142
Graphs have integer node colours and edge labels.
143
143
0 commit comments