Skip to content

Commit 110bcf8

Browse files
Ruediger.LundeRuediger.Lunde
authored andcommitted
class Problem prepared for subclassing.
1 parent 6dce0e2 commit 110bcf8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/aima/search/framework/Problem.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@
1414

1515
public class Problem {
1616

17-
Object initialState;
17+
protected Object initialState;
1818

19-
SuccessorFunction successorFunction;
19+
protected SuccessorFunction successorFunction;
2020

21-
GoalTest goalTest;
21+
protected GoalTest goalTest;
2222

23-
StepCostFunction stepCostFunction;
23+
protected StepCostFunction stepCostFunction;
2424

25-
HeuristicFunction heuristicFunction;
25+
protected HeuristicFunction heuristicFunction;
26+
27+
protected Problem() {
28+
}
2629

2730
public Problem(Object initialState, SuccessorFunction successorFunction,
2831
GoalTest goalTest) {

0 commit comments

Comments
 (0)