Class AuctionEngine


  • public class AuctionEngine
    extends AbstractEngine
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 07, 2016
    • Field Detail

      • timer

        @Autowired
        @Qualifier("serverTimer")
        private java.util.concurrent.ScheduledExecutorService timer
      • clientServerEventBus

        @Autowired
        @Qualifier("serverClientEventBus")
        private com.google.common.eventbus.AsyncEventBus clientServerEventBus
    • Constructor Detail

      • AuctionEngine

        public AuctionEngine()
    • Method Detail

      • init

        @PostConstruct
        private void init()
      • unregister

        @PreDestroy
        private void unregister()
      • startAuction

        public void startAuction​(IAuction auction,
                                 java.util.List<IAIPlayer> players)
      • handleBid

        public void handleBid​(AuctionBid bid)
      • handleBidLevelChange

        public void handleBidLevelChange​(AuctionBidLevel change)
      • getChildren

        public java.util.List<AbstractEngine> getChildren()
        Description copied from class: AbstractEngine
        Any engine may hold various child engines. This is the way to retrieve them. If there are no child engines, return an empty list. Subclasses have to implement this in the proper way.
        Specified by:
        getChildren in class AbstractEngine
        Returns:
        list of child engines.