From 079af81ce06c58cd309c4f60fd962be7e66f7ac7 Mon Sep 17 00:00:00 2001 From: Naveen Sundar Govindarajulu Date: Sat, 21 Jan 2017 09:15:17 -0600 Subject: [PATCH] getters and setters added. --- .../java/edu/rpi/rair/DepthFirstPlanner.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/rpi/rair/DepthFirstPlanner.java b/src/main/java/edu/rpi/rair/DepthFirstPlanner.java index 590a642..74a81d0 100644 --- a/src/main/java/edu/rpi/rair/DepthFirstPlanner.java +++ b/src/main/java/edu/rpi/rair/DepthFirstPlanner.java @@ -15,9 +15,24 @@ import java.util.stream.Collectors; public class DepthFirstPlanner implements Planner { - private static final int MAX_DEPTH = 4; - private static final boolean EXHAUSTIVE_TILL_MAX_DEPTH = true; + private static int MAX_DEPTH = 4; + 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 public Optional> plan(Set background, Set actions, State start, State goal) {