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.
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)
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.
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