fipaos.tutorial.emarkets.agent.seller.offer
Class SimpleOfferEngine


public class SimpleOfferEngine
implements OfferEngine

This class is a very basic implementation of the OfferEngine interface. It simply returns a cfp with the same parameters as the proposal it last received.


Constructor Summary
SimpleOfferEngine(SellerAgent seller)
          This constructor creates an instance of the SimpleOfferEngine.

Method Summary
 NegotiationMessagemakeOffer(NegotiationMessage proposal_msg)
          This method creates a cfp (an offer) to invite buyers to purchase a certain number of items at a certain price per item.

Constructor Detail

SimpleOfferEngine

public SimpleOfferEngine(SellerAgent seller)
This constructor creates an instance of the SimpleOfferEngine.
Parameters:
seller - A reference back to the seller agent. This should be used to retrieve information that may be useful in the formulation of a new call for proposals (cfp)
Method Detail

makeOffer

public NegotiationMessage makeOffer(NegotiationMessage proposal_msg)
This method creates a cfp (an offer) to invite buyers to purchase a certain number of items at a certain price per item.
Parameters:
proposal_msg - The proposal message containing the number of items the buyer wishes to purchase and the price per item they wish to pay
Returns: A new NegotiationMessage stating how many items this seller is offering the buyer, and at what price per item.

Association Links

to Class fipaos.tutorial.emarkets.agent.seller.SellerAgent

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