@GoalTargetCondition//(beliefs="money") public boolean checkTarget() { return money==target; } }
c.beliefs(), c.rawevents(), c.parameters(), model, m, cl);
c.beliefs(), c.rawevents(), c.parameters(), model, m, cl); mgoal.addCondition(MGoal.CONDITION_TARGET, mcond);
/** * Check the target condition. */ @GoalTargetCondition protected boolean checkTarget() { return cnt == 2; }
@GoalTargetCondition//(beliefs="success") public boolean achieved() { return success; } }
@GoalTargetCondition // @GoalTargetCondition(parameters="cnt") // @GoalTargetCondition(parameters="elems") // @GoalTargetCondition(rawevents=ChangeEvent.PARAMETERCHANGED+".jadex.bdiv3.testcases.goals.GoalParameterBDI$TestGoal.cnt") // @GoalTargetCondition(rawevents=ChangeEvent.PARAMETERCHANGED+".*") public boolean checkTarget() { return cnt==2; // return elems.size()==10; }
/** * Check the target condition. */ @GoalTargetCondition protected boolean checkTarget() { return cnt == 2; }
@GoalTargetCondition//(beliefs="num1") protected boolean checkTarget() { return num1==2; } }
@GoalTargetCondition//(beliefs="num2") protected boolean checkTarget() { return num2==3; } }
/** * The target condition determines when * the goal goes back to idle. */ @GoalTargetCondition//(beliefs="my_chargestate") public boolean checkTarget() { return my_chargestate>=1.0; } }
@GoalTargetCondition(parameters="results") public boolean checkTarget() { // return cnt==3; return results.size()==3; }
@GoalTargetCondition(parameters="elems") public boolean checkTarget() { return "c".equals(elems[2]); }
@GoalTargetCondition//(beliefs="wordtable") protected boolean target() { // System.out.println("check target: "+wordtable.size()+" "+event); return wordtable.size()<3; }
@GoalTargetCondition//(beliefs="items") protected boolean checkTarget()//@Event("items") Object ev) { return items.size()>=num; }
@GoalTargetCondition(parameters="order") public boolean checkTarget() { return Order.DONE.equals(order.getState()); } }
/** * Called whenever the counter belief changes. */ @GoalTargetCondition protected boolean target(@Event("counter") int cnt) { System.out.println("check target: "+cnt); return cnt==target; }
/** * The goal is achieved when the position * of the cleaner is near to the target position. */ @GoalTargetCondition//(beliefs="my_location") public boolean checkTarget() { return my_location.isNear(location); }
@GoalTargetCondition(beliefs="chargingstations") public boolean checkTarget() { station = getNearestChargingStation(); return station!=null; }
@GoalTargetCondition(parameters="order") public boolean checkTarget() { return Order.DONE.equals(order.getState()); } }
/** * Move goal is successful when resulting board represents a solution. */ @GoalTargetCondition//(beliefs="board") public boolean isAchieved() { return board.isSolution(); }