edu.ksu.cis.projects.bogor.module.state.event
Class DefaultThreadEventNotifier

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
      extended by edu.ksu.cis.projects.bogor.module.state.event.DefaultThreadEventNotifier
All Implemented Interfaces:
IEventNotifier, IThreadEventNotifier

public class DefaultThreadEventNotifier
extends AbstractEventNotifier
implements IThreadEventNotifier

Version:
CVS $Revision: 1.2 $ $Date: 2004/12/18 22:36:34 $
Author:
Robby

Field Summary
protected  ArrayList<ILocalVarReadListener> localVarReadListeners
           
protected  ArrayList<ILocalVarWrittenListener> localVarWrittenListeners
           
protected  ArrayList<ILocationChangedListener> locationChangedListeners
           
protected  ArrayList<IThreadCreatedListener> threadCreatedListeners
           
protected  ArrayList<IThreadDiedListener> threadDiedListeners
           
protected  ArrayList<IThreadEnterFunctionListener> threadEnterFunctionListeners
           
protected  ArrayList<IThreadExitFunctionListener> threadExitFunctionListeners
           
 
Fields inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
notificationEnabledKeys
 
Constructor Summary
DefaultThreadEventNotifier()
           
 
Method Summary
 void addLocalVarReadListener(ILocalVarReadListener gvrl)
           
 void addLocalVarWrittenListener(ILocalVarWrittenListener gvwl)
           
 void addLocationChangedListener(ILocationChangedListener lcl)
           
 void addThreadCreatedListener(IThreadCreatedListener tcl)
           
 void addThreadDiedListener(IThreadDiedListener tdl)
           
 void addThreadEnterFunction(IThreadEnterFunctionListener tefl)
           
 void addThreadExitFunction(IThreadExitFunctionListener tefl)
           
 void notifyLocalVarRead(int threadId, int localIndex, IValue readValue)
           
 void notifyLocalVarWritten(int threadId, int localIndex, IValue writtenValue, IValue oldValue)
           
 void notifyLocationChanged(int threadId, int newLocDesc, int oldLocDesc, int transformationIndex)
           
 void notifyThreadCreated(int creatorThreadId, int threadId, IValue[] localValues, int locDesc)
           
 void notifyThreadDied(int threadId, IValue[] localValues, int locDesc)
           
 void notifyThreadEnterFunction(int threadId, IValue[] localValues, int locDesc, int transformationIndex)
           
 void notifyThreadExitFunction(int threadId, IValue[] localValues, int locDesc, int transformationIndex)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
enableNotification, enableNotification, getEnabledKeys, removeEnableNotificationKey, removeEnableNotificationKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.event.IEventNotifier
enableNotification, enableNotification, getEnabledKeys, removeEnableNotificationKey, removeEnableNotificationKeys
 

Field Detail

localVarReadListeners

protected ArrayList<ILocalVarReadListener> localVarReadListeners

localVarWrittenListeners

protected ArrayList<ILocalVarWrittenListener> localVarWrittenListeners

locationChangedListeners

protected ArrayList<ILocationChangedListener> locationChangedListeners

threadCreatedListeners

protected ArrayList<IThreadCreatedListener> threadCreatedListeners

threadDiedListeners

protected ArrayList<IThreadDiedListener> threadDiedListeners

threadEnterFunctionListeners

protected ArrayList<IThreadEnterFunctionListener> threadEnterFunctionListeners

threadExitFunctionListeners

protected ArrayList<IThreadExitFunctionListener> threadExitFunctionListeners
Constructor Detail

DefaultThreadEventNotifier

public DefaultThreadEventNotifier()
Method Detail

addLocalVarReadListener

public void addLocalVarReadListener(ILocalVarReadListener gvrl)
Specified by:
addLocalVarReadListener in interface IThreadEventNotifier

addLocalVarWrittenListener

public void addLocalVarWrittenListener(ILocalVarWrittenListener gvwl)
Specified by:
addLocalVarWrittenListener in interface IThreadEventNotifier

addLocationChangedListener

public void addLocationChangedListener(ILocationChangedListener lcl)
Specified by:
addLocationChangedListener in interface IThreadEventNotifier

addThreadCreatedListener

public void addThreadCreatedListener(IThreadCreatedListener tcl)
Specified by:
addThreadCreatedListener in interface IThreadEventNotifier

addThreadDiedListener

public void addThreadDiedListener(IThreadDiedListener tdl)
Specified by:
addThreadDiedListener in interface IThreadEventNotifier

addThreadEnterFunction

public void addThreadEnterFunction(IThreadEnterFunctionListener tefl)
Specified by:
addThreadEnterFunction in interface IThreadEventNotifier

addThreadExitFunction

public void addThreadExitFunction(IThreadExitFunctionListener tefl)
Specified by:
addThreadExitFunction in interface IThreadEventNotifier

notifyLocalVarRead

public void notifyLocalVarRead(int threadId,
                               int localIndex,
                               IValue readValue)
Specified by:
notifyLocalVarRead in interface IThreadEventNotifier

notifyLocalVarWritten

public void notifyLocalVarWritten(int threadId,
                                  int localIndex,
                                  IValue writtenValue,
                                  IValue oldValue)
Specified by:
notifyLocalVarWritten in interface IThreadEventNotifier

notifyLocationChanged

public void notifyLocationChanged(int threadId,
                                  int newLocDesc,
                                  int oldLocDesc,
                                  int transformationIndex)
Specified by:
notifyLocationChanged in interface IThreadEventNotifier

notifyThreadCreated

public void notifyThreadCreated(int creatorThreadId,
                                int threadId,
                                IValue[] localValues,
                                int locDesc)
Specified by:
notifyThreadCreated in interface IThreadEventNotifier

notifyThreadDied

public void notifyThreadDied(int threadId,
                             IValue[] localValues,
                             int locDesc)
Specified by:
notifyThreadDied in interface IThreadEventNotifier

notifyThreadEnterFunction

public void notifyThreadEnterFunction(int threadId,
                                      IValue[] localValues,
                                      int locDesc,
                                      int transformationIndex)
Specified by:
notifyThreadEnterFunction in interface IThreadEventNotifier

notifyThreadExitFunction

public void notifyThreadExitFunction(int threadId,
                                     IValue[] localValues,
                                     int locDesc,
                                     int transformationIndex)
Specified by:
notifyThreadExitFunction in interface IThreadEventNotifier