/** * Implementations may override this to provide different default goal predicates over the search space. If no * default is to be provided, <tt>null</tt> may be returned. * * @return The default goal predicate, or <tt>null</tt> if no default is provided. This implementation returns <tt> * null</tt>. */ public UnaryPredicate getDefaultGoalPredicate() { if (this instanceof GoalState) { return new DefaultGoalPredicate(); } else { return null; } }
/** * Implementations may override this to provide different default goal predicates over the search space. If no * default is to be provided, <tt>null</tt> may be returned. * * @return The default goal predicate, or <tt>null</tt> if no default is provided. This implementation returns <tt> * null</tt>. */ public UnaryPredicate getDefaultGoalPredicate() { if (this instanceof GoalState) { return new DefaultGoalPredicate(); } else { return null; } }