mirror of
https://github.com/RAIRLab/Spectra.git
synced 2024-11-22 00:46:29 -05:00
getters and setters added.
This commit is contained in:
parent
bfaaf6d882
commit
079af81ce0
1 changed files with 17 additions and 2 deletions
|
@ -15,9 +15,24 @@ import java.util.stream.Collectors;
|
||||||
public class DepthFirstPlanner implements Planner {
|
public class DepthFirstPlanner implements Planner {
|
||||||
|
|
||||||
|
|
||||||
private static final int MAX_DEPTH = 4;
|
private static int MAX_DEPTH = 4;
|
||||||
private static final boolean EXHAUSTIVE_TILL_MAX_DEPTH = true;
|
private static boolean EXHAUSTIVE_TILL_MAX_DEPTH = true;
|
||||||
|
|
||||||
|
public static int getMaxDepth() {
|
||||||
|
return MAX_DEPTH;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isExhaustiveTillMaxDepth() {
|
||||||
|
return EXHAUSTIVE_TILL_MAX_DEPTH;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setMaxDepth(int maxDepth) {
|
||||||
|
MAX_DEPTH = maxDepth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setExhaustiveTillMaxDepth(boolean exhaustiveTillMaxDepth) {
|
||||||
|
EXHAUSTIVE_TILL_MAX_DEPTH = exhaustiveTillMaxDepth;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Set<Plan>> plan(Set<Formula> background, Set<Action> actions, State start, State goal) {
|
public Optional<Set<Plan>> plan(Set<Formula> background, Set<Action> actions, State start, State goal) {
|
||||||
|
|
Loading…
Reference in a new issue