edu.ksu.cis.projects.bogor.module.value.event
Class DefaultArrayEventNotifier

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
      extended by edu.ksu.cis.projects.bogor.module.value.event.DefaultArrayEventNotifier
All Implemented Interfaces:
IEventNotifier, IArrayEventNotifier

public class DefaultArrayEventNotifier
extends AbstractEventNotifier
implements IArrayEventNotifier

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

Field Summary
protected  ArrayList<IArrayElementReadListener> arrayElementReadListeners
           
protected  ArrayList<IArrayElementWrittenListener> arrayElementWrittenListeners
           
protected  ArrayList<IArrayFieldReadListener> arrayFieldReadListeners
           
protected  ArrayList<IArrayFieldWrittenListener> arrayFieldWrittenListeners
           
 
Fields inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
notificationEnabledKeys
 
Constructor Summary
DefaultArrayEventNotifier()
           
 
Method Summary
 void addArrayElementReadListener(IArrayElementReadListener aerl)
           
 void addArrayElementWrittenListener(IArrayElementWrittenListener aewl)
           
 void addArrayFieldReadListener(IArrayFieldReadListener aerl)
           
 void addArrayFieldWrittenListener(IArrayFieldWrittenListener aewl)
           
 void notifyArrayElementRead(int threadId, IArrayValue av, int elementIndex, IValue readValue)
           
 void notifyArrayElementWritten(int threadId, IArrayValue av, int elementIndex, IValue writtenValue, IValue oldValue)
           
 void notifyArrayFieldRead(int threadId, IArrayValue av, int fieldIndex, IValue readValue)
           
 void notifyArrayFieldWritten(int threadId, IArrayValue av, int fieldIndex, 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

arrayElementReadListeners

protected ArrayList<IArrayElementReadListener> arrayElementReadListeners

arrayElementWrittenListeners

protected ArrayList<IArrayElementWrittenListener> arrayElementWrittenListeners

arrayFieldReadListeners

protected ArrayList<IArrayFieldReadListener> arrayFieldReadListeners

arrayFieldWrittenListeners

protected ArrayList<IArrayFieldWrittenListener> arrayFieldWrittenListeners
Constructor Detail

DefaultArrayEventNotifier

public DefaultArrayEventNotifier()
Method Detail

addArrayElementReadListener

public void addArrayElementReadListener(IArrayElementReadListener aerl)
Specified by:
addArrayElementReadListener in interface IArrayEventNotifier

addArrayElementWrittenListener

public void addArrayElementWrittenListener(IArrayElementWrittenListener aewl)
Specified by:
addArrayElementWrittenListener in interface IArrayEventNotifier

addArrayFieldReadListener

public void addArrayFieldReadListener(IArrayFieldReadListener aerl)
Specified by:
addArrayFieldReadListener in interface IArrayEventNotifier

addArrayFieldWrittenListener

public void addArrayFieldWrittenListener(IArrayFieldWrittenListener aewl)
Specified by:
addArrayFieldWrittenListener in interface IArrayEventNotifier

notifyArrayElementRead

public void notifyArrayElementRead(int threadId,
                                   IArrayValue av,
                                   int elementIndex,
                                   IValue readValue)
Specified by:
notifyArrayElementRead in interface IArrayEventNotifier

notifyArrayElementWritten

public void notifyArrayElementWritten(int threadId,
                                      IArrayValue av,
                                      int elementIndex,
                                      IValue writtenValue,
                                      IValue oldValue)
Specified by:
notifyArrayElementWritten in interface IArrayEventNotifier

notifyArrayFieldRead

public void notifyArrayFieldRead(int threadId,
                                 IArrayValue av,
                                 int fieldIndex,
                                 IValue readValue)
Specified by:
notifyArrayFieldRead in interface IArrayEventNotifier

notifyArrayFieldWritten

public void notifyArrayFieldWritten(int threadId,
                                    IArrayValue av,
                                    int fieldIndex,
                                    IValue writtenValue,
                                    IValue oldValue)
Specified by:
notifyArrayFieldWritten in interface IArrayEventNotifier