Package jadex.bdiv3.testcases.goals
Class RecurBDI
- java.lang.Object
- 
- jadex.bdiv3.testcases.goals.RecurBDI
 
- 
 public class RecurBDI extends java.lang.ObjectAgent that has a goal for buying an amount of items.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classRecurBDI.BuyItemsGoalA buy items goal that is responsible for buying a number of items.
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe bdi agent.protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item>itemsThe list of items.protected doublemoneyThe initial money.protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item>storeThe items in store.protected TestReporttr
 - 
Constructor SummaryConstructors Constructor Description RecurBDI()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The agent body.protected IFuture<java.lang.Void>buyItemPlan(RecurBDI.BuyItemsGoal goal)First plan.voiddestroy(IInternalAccess agent)Called when agent is killed.doublegetMoney()Get the money.voidsetMoney(double money)Set the money.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The bdi agent.
 - 
itemsprotected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> items The list of items.
 - 
moneyprotected double money The initial money.
 - 
storeprotected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> store The items in store.
 - 
trprotected TestReport tr 
 
- 
 - 
Method Detail- 
bodypublic void body() The agent body.
 - 
destroypublic void destroy(IInternalAccess agent) Called when agent is killed.
 - 
buyItemPlanprotected IFuture<java.lang.Void> buyItemPlan(RecurBDI.BuyItemsGoal goal) First plan. Fails with exception.
 - 
getMoneypublic double getMoney() Get the money.- Returns:
- The money.
 
 - 
setMoneypublic void setMoney(double money) Set the money.- Parameters:
- money- The money to set.
 
 
- 
 
-