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