Class ReschedulableSailorHireTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ReschedulableSailorHireTask
    extends TimedTask
    Task to hire sailors onto the ship. This task is rescheduled daily until the required amount is hired. At the end the blocking mission is removed.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on Oct 07, 2018
    • Field Detail

      • ship

        private final IShip ship
      • requiredNumberOfSailors

        private final int requiredNumberOfSailors
      • city

        private final ICity city
      • date

        @Autowired
        private Date date
      • clientServerEventBus

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

      • ReschedulableSailorHireTask

        public ReschedulableSailorHireTask​(IShip ship,
                                           ISailorState sailorState,
                                           int requiredNumberOfSailors,
                                           ICity city)
    • Method Detail

      • run

        public void run()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object