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

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
      extended by edu.ksu.cis.projects.bogor.module.value.event.DefaultValueEventNotifier
All Implemented Interfaces:
IEventNotifier, IArrayEventNotifier, IExtValueEventNotifier, ILockEventNotifier, IRecordEventNotifier, IValueEventNotifier

public class DefaultValueEventNotifier
extends AbstractEventNotifier
implements IValueEventNotifier

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

Field Summary
protected  DefaultArrayEventNotifier daen
           
protected  DefaultExtValueEventNotifier deve
           
protected  DefaultLockEventNotifier dlen
           
protected  DefaultRecordEventNotifier dren
           
 
Fields inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
notificationEnabledKeys
 
Constructor Summary
DefaultValueEventNotifier()
           
 
Method Summary
 void addArrayElementReadListener(IArrayElementReadListener aerl)
           
 void addArrayElementWrittenListener(IArrayElementWrittenListener aewl)
           
 void addArrayFieldReadListener(IArrayFieldReadListener aerl)
           
 void addArrayFieldWrittenListener(IArrayFieldWrittenListener aewl)
           
 void addExtValueStateChangedListener(IExtValueStateChangedListener evscl)
           
 void addExtValueStateQueriedListener(IExtValueStateQueriedListener evsql)
           
 void addLockLockedListener(ILockLockedListener lll)
           
 void addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
           
 void addLockNotifiedListener(ILockNotifiedListener lnl)
           
 void addLockUnlockedListener(ILockUnlockedListener lul)
           
 void addLockUnwaitListener(ILockUnwaitListener lul)
           
 void addLockWaitListener(ILockWaitListener lwl)
           
 void addRecordFieldReadListener(IRecordFieldReadListener rfrl)
           
 void addRecordFieldWrittenListener(IRecordFieldWrittenListener rfwl)
           
 void addValueEventListener(IValueEventListener vel)
           
 void enableNotification(Object key)
           
 void enableNotification(Set<Object> keys)
           
 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)
           
 void notifyExtValueStateChanged(int threadId, INonPrimitiveExtValue npev, IExtValueStateQueriedInfo evsqi)
           
 void notifyExtValueStateChanged(int threadId, IPrimitiveExtValue pev, IExtValueStateQueriedInfo evsqi)
           
 void notifyExtValueStateQueried(int threadId, INonPrimitiveExtValue npev, IExtValueStateQueriedInfo evsqi)
           
 void notifyExtValueStateQueried(int threadId, IPrimitiveExtValue pev, IExtValueStateQueriedInfo evsqi)
           
 void notifyLockLocked(int threadId, ILockValue lv, int newLockCounter)
           
 void notifyLockNotified(int threadId, ILockValue lv, int notifiedThreadId)
           
 void notifyLockNotifiedAll(int threadId, ILockValue lv, int[] notifiedThreadIds)
           
 void notifyLockUnlocked(int threadId, ILockValue lv, int newLockCounter)
           
 void notifyLockUnwait(int threadId, ILockValue lv, int lockCounter)
           
 void notifyLockWait(int threadId, ILockValue lv, int lockCounter)
           
 void notifyRecordFieldRead(int threadId, IRecordValue rv, int fieldIndex, IValue readValue)
           
 void notifyRecordFieldWritten(int threadId, IRecordValue rv, int fieldIndex, IValue writtenValue, IValue oldValue)
           
 void removeEnableNotificationKey(Object key)
           
 void removeEnableNotificationKeys(Set<Object> keys)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
getEnabledKeys
 
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
getEnabledKeys
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.event.IEventNotifier
getEnabledKeys
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.event.IEventNotifier
getEnabledKeys
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.event.IEventNotifier
getEnabledKeys
 

Field Detail

daen

protected DefaultArrayEventNotifier daen

deve

protected DefaultExtValueEventNotifier deve

dlen

protected DefaultLockEventNotifier dlen

dren

protected DefaultRecordEventNotifier dren
Constructor Detail

DefaultValueEventNotifier

public DefaultValueEventNotifier()
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

addExtValueStateChangedListener

public void addExtValueStateChangedListener(IExtValueStateChangedListener evscl)
Specified by:
addExtValueStateChangedListener in interface IExtValueEventNotifier

addExtValueStateQueriedListener

public void addExtValueStateQueriedListener(IExtValueStateQueriedListener evsql)
Specified by:
addExtValueStateQueriedListener in interface IExtValueEventNotifier

addLockLockedListener

public void addLockLockedListener(ILockLockedListener lll)
Specified by:
addLockLockedListener in interface ILockEventNotifier

addLockNotifiedAllListener

public void addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
Specified by:
addLockNotifiedAllListener in interface ILockEventNotifier

addLockNotifiedListener

public void addLockNotifiedListener(ILockNotifiedListener lnl)
Specified by:
addLockNotifiedListener in interface ILockEventNotifier

addLockUnlockedListener

public void addLockUnlockedListener(ILockUnlockedListener lul)
Specified by:
addLockUnlockedListener in interface ILockEventNotifier

addLockUnwaitListener

public void addLockUnwaitListener(ILockUnwaitListener lul)
Specified by:
addLockUnwaitListener in interface ILockEventNotifier

addLockWaitListener

public void addLockWaitListener(ILockWaitListener lwl)
Specified by:
addLockWaitListener in interface ILockEventNotifier

addRecordFieldReadListener

public void addRecordFieldReadListener(IRecordFieldReadListener rfrl)
Specified by:
addRecordFieldReadListener in interface IRecordEventNotifier

addRecordFieldWrittenListener

public void addRecordFieldWrittenListener(IRecordFieldWrittenListener rfwl)
Specified by:
addRecordFieldWrittenListener in interface IRecordEventNotifier

addValueEventListener

public void addValueEventListener(IValueEventListener vel)
Specified by:
addValueEventListener in interface IValueEventNotifier

enableNotification

public void enableNotification(Object key)
Specified by:
enableNotification in interface IEventNotifier
Overrides:
enableNotification in class AbstractEventNotifier

enableNotification

public void enableNotification(Set<Object> keys)
Specified by:
enableNotification in interface IEventNotifier
Overrides:
enableNotification in class AbstractEventNotifier

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

notifyExtValueStateChanged

public void notifyExtValueStateChanged(int threadId,
                                       IPrimitiveExtValue pev,
                                       IExtValueStateQueriedInfo evsqi)
Specified by:
notifyExtValueStateChanged in interface IExtValueEventNotifier

notifyExtValueStateChanged

public void notifyExtValueStateChanged(int threadId,
                                       INonPrimitiveExtValue npev,
                                       IExtValueStateQueriedInfo evsqi)
Specified by:
notifyExtValueStateChanged in interface IExtValueEventNotifier

notifyExtValueStateQueried

public void notifyExtValueStateQueried(int threadId,
                                       IPrimitiveExtValue pev,
                                       IExtValueStateQueriedInfo evsqi)
Specified by:
notifyExtValueStateQueried in interface IExtValueEventNotifier

notifyExtValueStateQueried

public void notifyExtValueStateQueried(int threadId,
                                       INonPrimitiveExtValue npev,
                                       IExtValueStateQueriedInfo evsqi)
Specified by:
notifyExtValueStateQueried in interface IExtValueEventNotifier

notifyLockLocked

public void notifyLockLocked(int threadId,
                             ILockValue lv,
                             int newLockCounter)
Specified by:
notifyLockLocked in interface ILockEventNotifier

notifyLockNotified

public void notifyLockNotified(int threadId,
                               ILockValue lv,
                               int notifiedThreadId)
Specified by:
notifyLockNotified in interface ILockEventNotifier

notifyLockNotifiedAll

public void notifyLockNotifiedAll(int threadId,
                                  ILockValue lv,
                                  int[] notifiedThreadIds)
Specified by:
notifyLockNotifiedAll in interface ILockEventNotifier

notifyLockUnlocked

public void notifyLockUnlocked(int threadId,
                               ILockValue lv,
                               int newLockCounter)
Specified by:
notifyLockUnlocked in interface ILockEventNotifier

notifyLockUnwait

public void notifyLockUnwait(int threadId,
                             ILockValue lv,
                             int lockCounter)
Specified by:
notifyLockUnwait in interface ILockEventNotifier

notifyLockWait

public void notifyLockWait(int threadId,
                           ILockValue lv,
                           int lockCounter)
Specified by:
notifyLockWait in interface ILockEventNotifier

notifyRecordFieldRead

public void notifyRecordFieldRead(int threadId,
                                  IRecordValue rv,
                                  int fieldIndex,
                                  IValue readValue)
Specified by:
notifyRecordFieldRead in interface IRecordEventNotifier

notifyRecordFieldWritten

public void notifyRecordFieldWritten(int threadId,
                                     IRecordValue rv,
                                     int fieldIndex,
                                     IValue writtenValue,
                                     IValue oldValue)
Specified by:
notifyRecordFieldWritten in interface IRecordEventNotifier

removeEnableNotificationKey

public void removeEnableNotificationKey(Object key)
Specified by:
removeEnableNotificationKey in interface IEventNotifier
Overrides:
removeEnableNotificationKey in class AbstractEventNotifier

removeEnableNotificationKeys

public void removeEnableNotificationKeys(Set<Object> keys)
Specified by:
removeEnableNotificationKeys in interface IEventNotifier
Overrides:
removeEnableNotificationKeys in class AbstractEventNotifier