Implementing OCPlanningAgent , planning control logic