001 package toolbus.viewer; 002 003 import toolbus.StateElement; 004 import toolbus.process.ProcessInstance; 005 import toolbus.tool.ToolInstance; 006 import aterm.ATerm; 007 008 /** 009 * This is a convenience class for implementing viewer event listeners. 010 * 011 * @author Arnold Lankamp 012 */ 013 public abstract class AbstractViewerAdapter implements IViewer, IPerformanceMonitor{ 014 015 /** 016 * Default constructor. 017 */ 018 public AbstractViewerAdapter(){ 019 super(); 020 } 021 022 /** 023 * @see IViewer#processBreakPointHit(ProcessInstance) 024 */ 025 public void processBreakPointHit(ProcessInstance processInstance){ 026 // Intentionally left empty; overwrite in subclass. 027 } 028 029 /** 030 * @see IViewer#processInstanceStarted(ProcessInstance) 031 */ 032 public void processInstanceStarted(ProcessInstance processInstance){ 033 // Intentionally left empty; overwrite in subclass. 034 } 035 036 /** 037 * @see IViewer#processInstanceTerminated(ProcessInstance) 038 */ 039 public void processInstanceTerminated(ProcessInstance processInstance){ 040 // Intentionally left empty; overwrite in subclass. 041 } 042 043 /** 044 * @see IViewer#sourceBreakPointHit(StateElement) 045 */ 046 public void sourceBreakPointHit(StateElement stateElement){ 047 // Intentionally left empty; overwrite in subclass. 048 } 049 050 /** 051 * @see IViewer#stateElementBreakPointHit(StateElement) 052 */ 053 public void stateElementBreakPointHit(StateElement stateElement){ 054 // Intentionally left empty; overwrite in subclass. 055 } 056 057 /** 058 * @see IViewer#stepExecuted(ProcessInstance, StateElement, ProcessInstance[]) 059 */ 060 public void stepExecuted(ProcessInstance processInstance, StateElement executedStateElement, ProcessInstance[] partners){ 061 // Intentionally left empty; overwrite in subclass. 062 } 063 064 /** 065 * @see IViewer#toolbusStarting() 066 */ 067 public void toolbusStarting(){ 068 // Intentionally left empty; overwrite in subclass. 069 } 070 071 /** 072 * @see IViewer#toolbusTerminating() 073 */ 074 public void toolbusTerminating(){ 075 // Intentionally left empty; overwrite in subclass. 076 } 077 078 /** 079 * @see IViewer#updateState(int) 080 */ 081 public void updateState(int state){ 082 // Intentionally left empty; overwrite in subclass. 083 } 084 085 /** 086 * @see IPerformanceMonitor#performanceStatsArrived(ToolInstance, ATerm) 087 */ 088 public void performanceStatsArrived(ToolInstance toolInstance, ATerm term){ 089 // Intentionally left empty; overwrite in subclass. 090 } 091 092 /** 093 * @see IPerformanceMonitor#toolConnected(ToolInstance) 094 */ 095 public void toolConnected(ToolInstance toolInstance){ 096 // Intentionally left empty; overwrite in subclass. 097 } 098 099 /** 100 * @see IPerformanceMonitor#toolConnectionClosed(ToolInstance) 101 */ 102 public void toolConnectionClosed(ToolInstance toolInstance){ 103 // Intentionally left empty; overwrite in subclass. 104 } 105 }