@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()); } }
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); }
@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; }