Ejemplo n.º 1
0
  /**
   * 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);
  }
Ejemplo n.º 2
0
 /** 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());
 }