public class BuyerBDI extends java.lang.Object implements INegotiationAgent
Modifier and Type | Class and Description |
---|---|
class |
BuyerBDI.PurchaseBook |
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent |
protected Gui |
gui |
protected java.util.List<NegotiationReport> |
reports |
Constructor and Description |
---|
BuyerBDI() |
Modifier and Type | Method and Description |
---|---|
void |
body()
The agent body.
|
void |
createGoal(Order order)
Create a purchase or sell oder.
|
protected void |
generateNegotiationReport(Order order,
jadex.commons.Tuple2<IBuyBookService,java.lang.Integer>[] proposals,
double acceptable_price)
Generate and add a negotiation report.
|
jadex.bridge.IInternalAccess |
getAgent()
Get the agent.
|
java.util.Collection<INegotiationGoal> |
getGoals()
Get all purchase or sell goals.
|
java.util.List<Order> |
getOrders()
Get all orders.
|
java.util.List<NegotiationReport> |
getReports(Order order)
Get all reports.
|
protected long |
getTime()
Get the current time.
|
protected void |
purchaseBook(BuyerBDI.PurchaseBook goal) |
void |
shutdown()
Called when agent terminates.
|
protected jadex.bridge.IInternalAccess agent
protected java.util.List<NegotiationReport> reports
protected Gui gui
public void body()
public void shutdown()
public java.util.List<Order> getOrders()
INegotiationAgent
getOrders
in interface INegotiationAgent
protected long getTime()
protected void purchaseBook(BuyerBDI.PurchaseBook goal)
protected void generateNegotiationReport(Order order, jadex.commons.Tuple2<IBuyBookService,java.lang.Integer>[] proposals, double acceptable_price)
public jadex.bridge.IInternalAccess getAgent()
getAgent
in interface INegotiationAgent
public void createGoal(Order order)
createGoal
in interface INegotiationAgent
public java.util.Collection<INegotiationGoal> getGoals()
getGoals
in interface INegotiationAgent
public java.util.List<NegotiationReport> getReports(Order order)
getReports
in interface INegotiationAgent