@Override protected boolean createKeys(List<GoalNode> toPopulate) { if (goals != null && !goals.isEmpty()) { for (int i = 0; i < goals.size(); i++) { toPopulate.add(new GoalNode(goals, i)); } } return true; }
/** * Returns the goal connected to this node. * * @return the goal connected to this node. */ public final Goal getGoal() { return goals.get(goalIndex); }