protected override Object formulateGoal() { Object goal = null; if (null == goals) { goal = map.randomlyGenerateDestination(); } else { goal = goals[goalTestPos]; goalTestPos++; } notifier.notifyViews("CurrentLocation=In(" + state.getAttribute(DynAttributeNames.AGENT_LOCATION) + "), Goal=In(" + goal + ")"); return(goal); }