fipaos.tutorial.emarkets.agent.buyer.bid
Class SimpleBidEngine
- public class SimpleBidEngine
- implements BidEngine
This class is a very basic implementation of the BidEngine interface.
It simply returns a proposal with the same parameters as the CFP it received.
SimpleBidEngine
public SimpleBidEngine(BuyerAgent buyer)
- This constructor creates an instance of the SimpleBidEngine.
- Parameters:
- buyer - A reference back to the buyer agent.
This should be used to retrieve information that may be useful in the formulation of a proposal
makeBid
public NegotiationMessage makeBid(NegotiationMessage cfp_msg)
- This method creates a proposal (a bid) to buy a certain number of items from a seller at a certain price per item.
- Parameters:
- cfp_msg - The CFP message containing the number of items the seller is offering this buyer and the price per item.
- Returns: A new NegotiationMessage stating how many items this buyer wishes to purchase, and at what price per item.
to Class fipaos.tutorial.emarkets.agent.buyer.BuyerAgent- This reference back to the buyer agent allows the SimpleBidEngine to access buyer variables
such as the current credit and item counts and the target for the agent.
This information is likely to be useful in forming an intelligent response to the seller's CFP message