/** * Get the value. */ @Belief public String getValue() { return val; }
/** * Set the time. * @param time The time to set. */ @Belief public void setTime(long time) { this.time = time; } }
/** * Set the number. * @param number The number to set. */ @Belief public void setNumber(int number) { this.number = number; }
/** * Set the time. * @param time The time to set. */ @Belief public void setTime(long time) { this.time = time; } }
/** * Set the wordtable. */ @Belief public native void setWordtable(Map<String, String> wordtable); }
/** * Get the number. * @return The number. */ @Belief public int getNumber() { return number; }
/** * Get the money. */ @Belief public native double getMoney();
/** * Get the time. * @return The time. */ @Belief public long getTime() { return time; }
/** * Get the wordtable. */ @Belief public native Map<String, String> getWordtable();
/** * Set the value. */ @Belief public void setValue(String value) { this.val = value; }
/** * Get the time. * @return The time. */ @Belief public long getTime() { return time; }
/** * Set the money. */ @Belief public native void setMoney(double money);
@Belief(updaterate=100) public int getCntBel() { cnt++; return cnt; }
@Belief public native long getLong(); @Belief
@Belief public native char getChar(); @Belief
@Belief public native boolean isBoolean(); @Belief
/** * Get the time. * @return The time. */ @Belief(updaterate=1000) public long getTime() { return System.currentTimeMillis(); }
/** * Basic treasure hunter agent with just the environment. */ @Agent public class TreasureHunterA1BDI { //-------- beliefs -------- /** The treasure hunter world object. */ @Belief protected TreasureHunterEnvironment env = new TreasureHunterEnvironment(); }
/** * */ @Belief(rawevents={@RawEvent(ChangeEvent.GOALADOPTED), @RawEvent(ChangeEvent.GOALDROPPED)}) public List<Order> getOrders() { List<Order> ret = new ArrayList<Order>(); Collection<SellBook> goals = agent.getComponentFeature(IBDIAgentFeature.class).getGoals(SellBook.class); for(SellBook goal: goals) { ret.add(goal.getOrder()); } return ret; }
/** * Customer capability. */ @Agent public class CustomerBDI { //-------- attributes -------- /** The customer capability. */ @Capability(beliefmapping=@Mapping("money")) protected CustomerCapability cap = new CustomerCapability(); /** The money. */ @Belief protected double money = 100; }