Package edu.neu.ccs.task

Examples of edu.neu.ccs.task.TaskEngine


    agent.getEngine().evalInitScripts();
    persistence.load(agent, user.getId());
  }
 
  protected void initPlan(int id, User user, Agent agent) throws Exception {
    TaskEngine engine = agent.getEngine();
    TaskModelSet modelSet = engine.getModelSet();
    QName topName = new QName(modelSet.getDefaultModel().getURI(), top);
    TaskPlan topPlan = engine.newTaskPlan(topName);
    Task topTask = topPlan.getTask();
   
    for (Map.Entry<String, String> e : topInputs.entrySet())
      topTask.setSlotValueScript(e.getKey(), e.getValue(), "init agent");
   
View Full Code Here


    receive("<PERFORM_COMPLETE");
    send("<SESSION EXIT=\"SOMETHING\"/>");
  }
 
  private void initPlan(String user) {
    TaskEngine engine = agent.getEngine();
    TaskModelSet modelSet = engine.getModelSet();
    QName topName = new QName(modelSet.getDefaultModel().getURI(), top);
    TaskPlan topPlan = engine.newTaskPlan(topName);
    Task topTask = topPlan.getTask();
   
    for (Map.Entry<String, String> e : topInputs.entrySet())
      topTask.setSlotValueScript(e.getKey(), e.getValue(), "init agent");
   
View Full Code Here

  @Help("Usage: eval EXPR\n" +
      "EXPR is evaluated as a Javascript expression, and the\n" +
      "results are printed.  Evaluation is in the global \n" +
      "environment, so $this is not bound.")
  public void _eval(String expr) {
    TaskEngine e = getEngine();
    Object value = e.evalGlobal(expr, "console eval");
    if (value != null)
      out.println(e.asLiteral(value, "console eval"));
  }
View Full Code Here

    this(null);
  }
 
  public Agent(TaskEngine engine) {
    this.engine = (engine!=null) ? engine :
      new TaskEngine(new TaskModelSet());
  }
View Full Code Here

TOP

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

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.