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 Summary
Nested Classes Modifier and Type Class Description classRecurBDI.BuyItemsGoalA buy items goal that is responsible for buying a number of items.
-
Field Summary
Fields 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 Summary
Constructors Constructor Description RecurBDI()
-
Method Summary
All 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
-
agent
protected IInternalAccess agent
The bdi agent.
-
items
protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> items
The list of items.
-
money
protected double money
The initial money.
-
store
protected java.util.List<jadex.bdiv3.testcases.goals.RecurBDI.Item> store
The items in store.
-
tr
protected TestReport tr
-
-
Method Detail
-
body
public void body()
The agent body.
-
destroy
public void destroy(IInternalAccess agent)
Called when agent is killed.
-
buyItemPlan
protected IFuture<java.lang.Void> buyItemPlan(RecurBDI.BuyItemsGoal goal)
First plan. Fails with exception.
-
getMoney
public double getMoney()
Get the money.- Returns:
- The money.
-
setMoney
public void setMoney(double money)
Set the money.- Parameters:
money- The money to set.
-
-