Package edu.neu.ccs.task

Examples of edu.neu.ccs.task.Plan


        return;
      }
    }
   
    String exitUrl = null;
    Plan top = agent.getTop();
    Task topTask = top.getThisTask();
    Slot exitUrlSlot = topTask.getType().getSlotIfExists("exitUrl");
    if ((exitUrlSlot != null) &&
      exitUrlSlot.isOutput() &&
      "string".equals(exitUrlSlot.getType()) &&
      topTask.isDefinedSlot("exitUrl")) {
View Full Code Here


    dump("USER", agent.getEngine().dumpUserModel());
  }
 
  private void dumpPlan() {
    StringWriter sw = new StringWriter();
    Plan plan = agent.getTop();
    if (plan != null)
      plan.printTree(new PrintWriter(sw), true, new Decorator() {
        public String decorate(Object o) {
          return (o == agent.getFocus()) ? " <-focus" : "";
        }
      });
   
View Full Code Here

  @Desc("display the current plan tree")
  @Help("Usage: status\n" +
      "Display a text representation of the current plan tree.\n" +
      "If 'verbose' is enabled, this will contain more detail.")
  public void _status(String ignored) {
    Plan top = agent.getTop();
    if (top == null)
      out.println("No current task");
    else
      top.printTree(out, verbose, new Decorator() {
        public String decorate(Object o) {
          return (o == agent.getFocus()) ? " <-focus" : "";
        }
      });
  }
View Full Code Here

    }
    return currentInputWidget;
  }
 
  private boolean getElaboratedLive(final Visitor<Plan> v) {
    Plan plan = focus;
    while (!plan.isLive())
      plan = plan.getParent();
   
    return plan.getBottommostLive(new Visitor<Plan> () {
      public boolean visit(Plan p) {
        return getElaboratedLive(p, v);
      }
    });
  }
View Full Code Here

TOP

Related Classes of edu.neu.ccs.task.Plan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.