/** * Send a task to the agent community. * * @param goal The task * @param params Parameters * @return A possibly empty list of solutions. */ public List<IclTerm> solve(IclTerm goal, List<IclTerm> params) { IclList answers = new IclList(); if (!outOaa.oaaSolve(goal, IclUtil.fromList(params), answers)) return Collections.<IclTerm>emptyList(); return IclUtil.toList(answers); }
/** Send a task to the agent community. Same as solve(goal, empty list). */ public List<IclTerm> solve(IclTerm goal) { return solve(goal, Collections.<IclTerm>emptyList()); }