/** * Set the result. * @param result The result to set. */ @GoalResult public void setResult(String result) { this.result = result; } }
/** * Get the result. * @return The result. */ @GoalResult public String getResult() { return result; }
@GoalResult protected List<String> getResult() { return results; } }
@GoalResult protected List<Double> getResult() { return results; } }
@GoalResult protected void resultReceived(String res) { // System.out.println("rec: "+res); results.add(res); }
@GoalResult protected void resultReceived(Double res) { System.out.println("rec: "+res); results.add(res); }
@Goal public class AGoal { @GoalResult protected String result; }
@GoalResult protected Double res;
/** * The translation goal. */ @Goal public class Translate { /** The english word. */ @GoalParameter protected String eword; /** The german word. */ @GoalResult protected String gword; /** * Create a new translate goal. */ public Translate(String eword) { this.eword = eword; } }
@GoalResult protected ItemInfo result;
/** * The translation goal. */ @Goal public class Translate { /** The english word. */ @GoalParameter protected String eword; /** The german word. */ @GoalResult protected String gword; /** * Create a new translate goal. */ public Translate(String eword) { this.eword = eword; } }
/** * The translation goal. */ @Goal//(retry=false) public class Translate { /** The english word. */ @GoalParameter protected String eword; /** The german word. */ @GoalResult protected String gword; /** * Create a new translate goal. */ public Translate(String eword) { this.eword = eword; } }
/** * The translation goal. */ @Goal public class Translate { /** The english word. */ @GoalParameter protected String eword; /** The german word. */ @GoalResult protected String gword; /** * Create a new translate goal. */ public Translate(String eword) { this.eword = eword; } }
@GoalResult protected String gword;
@GoalResult protected String p;
@GoalResult protected String gword;
@GoalResult protected String gword;