Exemple #1
0
 @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;
 }
Exemple #2
0
 /**
  * Returns the goal connected to this node.
  *
  * @return the goal connected to this node.
  */
 public final Goal getGoal() {
   return goals.get(goalIndex);
 }