public void factRemoved(ChangeInfo<Object> info) { ret.setResultIfUndone(null); } };
public void resultAvailable(Object result) { if(partfuture==ret) { partfuture = null; } ret.setResultIfUndone(result); }
public void completed(Request r) { // Todo: why called multiple times? done.setResultIfUndone(null); }
public void run() { // System.err.println("Shutdown threadpool timeout: "+this+", "+new Date()); // stop waiting for threadpool if still no notifaction ret.setResultIfUndone(null); } }, delay > -1 ? delay : 0);
public void customResultAvailable(Object result) { // Object res = RGoal.getGoalResult(fgoal, mgoal, agent.getClassLoader()); // Object res = RGoal.getGoalResult(rgoal, agent.getClassLoader()); // Do not set goal itself as result of service call but null then // Use setResultIfUndo as it could be a terminable future // System.out.println("gloaldelehandler end"+SUtil.arrayToString(args)); fret.setResultIfUndone(fgoal==result? null: result); } public void exceptionOccurred(Exception exception)
public void intermediateResultAvailable(T result) { ret.setResultIfUndone(result); }
public void cancelled() { // Todo: why called multiple times? done.setResultIfUndone(null); } });
public void resultAvailable(Object result) { ret.setResultIfUndone(null); }
public IFuture<Void> execute(IInternalAccess ia) { System.out.println("waited: "+ (System.currentTimeMillis() - startwait)); ret.setResultIfUndone(null); return IFuture.DONE; } });
public void beliefChanged(ChangeInfo<Object> info) { ret.setResultIfUndone(info.getValue()); } };
public void factAdded(ChangeInfo<Object> info) { ret.setResultIfUndone(info.getValue()); } };
public void customResultAvailable(Object result) { Object res = RGoal.getGoalResult(fgoal, mgoal, agent.getClassLoader()); // Do not set goal itself as result of service call but null then // Use setResultIfUndo as it could be a terminable future ret.setResultIfUndone(fgoal==res? null: res); } public void exceptionOccurred(Exception exception)
public void intermediateResultAvailable(TupleResult result) { if(result.getNum()==0) { cid[0] = (IComponentIdentifier)result.getResult(); } else { // if(filename.toString().indexOf("Feature")!=-1) // Thread.dumpStack(); finished.setResultIfUndone((Map<String, Object>)result.getResult()); } }
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did not return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did not return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did not return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!tr.isFinished()) { tr.setFailed("Goal did return"); agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr})); } ret.setResultIfUndone(null); return IFuture.DONE; } });