Class CaptainEngine


  • public class CaptainEngine
    extends AbstractEngine
    Engine controling all the roaming captains.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 19, 2013
    • Field Detail

      • date

        @Autowired
        private Date date
      • map

        @Autowired
        private IMap map
      • rnd

        @Autowired
        private java.util.Random rnd
      • timerEventBus

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

      • CaptainEngine

        public CaptainEngine()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • unregister

        @PreDestroy
        private void unregister()
      • getRandomCity

        private ICity getRandomCity()
      • 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.