AIMA.Core.Environment.Map.MapAgent.formulateGoal C# (CSharp) Method

formulateGoal() protected method

protected formulateGoal ( ) : System.Object
return System.Object
    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;
	}