public class RecurBDI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
RecurBDI.BuyItemsGoal
A buy items goal that is responsible for buying
a number of items.
|
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The bdi agent.
|
protected java.util.List<jadex.bdiv3.testcases.goals.Item> |
items
The list of items.
|
protected double |
money
The initial money.
|
protected java.util.List<jadex.bdiv3.testcases.goals.Item> |
store
The items in store.
|
protected jadex.base.test.TestReport |
tr |
Constructor and Description |
---|
RecurBDI() |
Modifier and Type | Method and Description |
---|---|
void |
body()
The agent body.
|
protected jadex.commons.future.IFuture<java.lang.Void> |
buyItemPlan(RecurBDI.BuyItemsGoal goal)
First plan.
|
void |
destroy(jadex.bridge.IInternalAccess agent)
Called when agent is killed.
|
double |
getMoney()
Get the money.
|
void |
setMoney(double money)
Set the money.
|
protected jadex.bridge.IInternalAccess agent
protected java.util.List<jadex.bdiv3.testcases.goals.Item> items
protected double money
protected java.util.List<jadex.bdiv3.testcases.goals.Item> store
protected jadex.base.test.TestReport tr
public void body()
public void destroy(jadex.bridge.IInternalAccess agent)
protected jadex.commons.future.IFuture<java.lang.Void> buyItemPlan(RecurBDI.BuyItemsGoal goal)
public double getMoney()
public void setMoney(double money)
money
- The money to set.