public void resultAvailable(Void result) { // The plans ensure that the force is guaranteed to be not duty when the goal is finished. // System.out.println("removing unit from busy list " + force); getParameterSet("units").removeValue(force); busy.removeFact(provid); }
public void exceptionOccurred(Exception exception) { // exception.printStackTrace(); // System.out.println("keeping unit busy, goal failed: " + force.getServiceIdentifier().getProviderId() + " " + exception.getMessage()); getParameterSet("units").removeValue(force); busy.removeFact(provid); // exception.printStackTrace(); } });
try getParameterSet("paramset").removeValue("testvalue 1"); report.setSucceeded(true);