Esempio n. 1
0
  @Override
  public void processResult(final ISimplifiedROMap<String, PrologTerm> bindings) {
    allCommands.processResult(bindings);

    for (OpInfo op : toCheck) {
      GetOpFromId cmd = cmds.get(toCheck.indexOf(op));
      op.setInfo(cmd.getName(), cmd.getParams(), cmd.getTargetState());
    }
  }
Esempio n. 2
0
 public GetOpsFromIds(final Collection<OpInfo> edges) {
   for (OpInfo opInfo : edges) {
     if (!opInfo.isEvaluated()) {
       toCheck.add(opInfo);
       cmds.add(new GetOpFromId(opInfo.id));
     }
   }
   List<AbstractCommand> cs = new ArrayList<AbstractCommand>(cmds);
   allCommands = new ComposedCommand(cs);
 }
Esempio n. 3
0
 @Override
 public Link addLink(final OpInfo op) {
   Node src = nodes.get(op.src);
   Node dest = nodes.get(op.dest);
   Link link =
       new Link(op.id, data.nodes.indexOf(src), data.nodes.indexOf(dest), op.getRep(), "#666");
   links.put(op.id, link);
   data.links.add(link);
   count++;
   return link;
 }