mirror of
				https://github.com/RAIRLab/Spectra.git
				synced 2025-10-26 22:51:19 +00: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 { | ||||
| 
 | ||||
| 
 | ||||
|     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<Set<Plan>> plan(Set<Formula> background, Set<Action> actions, State start, State goal) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue