001 package market.event; 002 003 import java.io.Serializable; 004 005 /** 006 * Convenience method that implements MarketEventListener with empty methods. 007 */ 008 public class MarketEventAdapter implements MarketEventListener, Serializable { 009 010 /** 011 * Invoked when the manager announces closing-time. 012 */ 013 public void notifyOnMarketClosing() { 014 } 015 016 /** 017 * Invoked when the manager cancels closing-time announcement. 018 */ 019 public void notifyOnMarketNotClosing() { 020 } 021 022 /** 023 * Invoked when the market opens. 024 */ 025 public void marketOpened() { 026 } 027 028 /** 029 * Invoked when the market closes. 030 */ 031 public void marketClosed() { 032 } 033 034 /** 035 * Invoked when the date changes. 036 */ 037 public void timeAdvanced() { 038 } 039 040 /** 041 * Invoked when a job enters the {@link market.SMarket#ss_warehouseQueue warehouse queue} or a 042 * warehouse worker logs on or off. 043 */ 044 public void workerInformationChanged(){ 045 } 046 }