public SearchResult(Node solution, Double fCostLimit) { if (null == solution) { this.outcome = SearchOutcome.FAILURE; } else { this.outcome = SearchOutcome.SOLUTION_FOUND; this.solution = solution; } this.fCostLimit = fCostLimit; }