Class EAReceiverPlan


  • public class EAReceiverPlan
    extends AbstractReceiverPlan
    This plan implements the receiver of the "FIPA Dutch Auction Interaction Protocol Specification" (XC00032 - Experimental). An English auction is one where bidders continuously can increase the current offer until no one is willing to increase any more.
    • Constructor Detail

      • EAReceiverPlan

        public EAReceiverPlan()
    • Method Detail

      • decideParticipation

        protected java.lang.Object[] decideParticipation​(AuctionDescription auctiondesc,
                                                         IComponentIdentifier initiator)
        Decide about participation. If the goal is not handled participation is true.
        Parameters:
        auctiondesc - The auction description.
        Returns:
        The participation state (Boolean) and the local auction info (Object).
      • handleCFP

        protected java.lang.Object[] handleCFP​(IMessageEvent cfp,
                                               AuctionDescription auctiondesc,
                                               java.lang.Object auctioninfo,
                                               java.util.List offers)
        Handle a cfp message.
        Parameters:
        auctiondesc - The auction description.
        Returns:
        The participation state (Boolean) and the local auction info (Object).