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

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

public class DefaultGlobalVarEventNotifier
extends AbstractEventNotifier
implements IGlobalVarEventNotifier

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

Field Summary
protected  ArrayList<IGlobalVarReadListener> globalVarReadListeners
           
protected  ArrayList<IGlobalVarWrittenListener> globalVarWrittenListeners
           
 
Fields inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
notificationEnabledKeys
 
Constructor Summary
DefaultGlobalVarEventNotifier()
           
 
Method Summary
 void addGlobalVarReadListener(IGlobalVarReadListener gvrl)
           
 void addGlobalVarWrittenListener(IGlobalVarWrittenListener gvwl)
           
 void notifyGlobalVarRead(int threadId, int globalIndex, IValue readValue)
           
 void notifyGlobalVarWritten(int threadId, int globalIndex, IValue writtenValue, IValue oldValue)
           
 
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

globalVarReadListeners

protected ArrayList<IGlobalVarReadListener> globalVarReadListeners

globalVarWrittenListeners

protected ArrayList<IGlobalVarWrittenListener> globalVarWrittenListeners
Constructor Detail

DefaultGlobalVarEventNotifier

public DefaultGlobalVarEventNotifier()
Method Detail

addGlobalVarReadListener

public void addGlobalVarReadListener(IGlobalVarReadListener gvrl)
Specified by:
addGlobalVarReadListener in interface IGlobalVarEventNotifier

addGlobalVarWrittenListener

public void addGlobalVarWrittenListener(IGlobalVarWrittenListener gvwl)
Specified by:
addGlobalVarWrittenListener in interface IGlobalVarEventNotifier

notifyGlobalVarRead

public void notifyGlobalVarRead(int threadId,
                                int globalIndex,
                                IValue readValue)
Specified by:
notifyGlobalVarRead in interface IGlobalVarEventNotifier

notifyGlobalVarWritten

public void notifyGlobalVarWritten(int threadId,
                                   int globalIndex,
                                   IValue writtenValue,
                                   IValue oldValue)
Specified by:
notifyGlobalVarWritten in interface IGlobalVarEventNotifier