001 package market.event; 002 003 /** 004 * Listener interface that enables Objects to listen to market specific events and react on them. 005 */ 006 public interface MarketEventListener { 007 008 /** 009 * Invoked when the manager announces closing-time. 010 */ 011 void notifyOnMarketClosing(); 012 013 /** 014 * Invoked when the manager cancels closing-time announcement. 015 */ 016 void notifyOnMarketNotClosing(); 017 018 /** 019 * Invoked when the market opens. 020 */ 021 void marketOpened(); 022 023 /** 024 * Invoked when the market closes. 025 */ 026 void marketClosed(); 027 028 /** 029 * Invoked when the date changes. 030 */ 031 void timeAdvanced(); 032 033 /** 034 * Invoked when a job enters the {@link market.SMarket#ss_warehouseQueue warehouse queue} or a 035 * warehouse worker logs on or off. 036 */ 037 void workerInformationChanged(); 038 039 }