Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes

alma.ACS.impl.CommonComparableMonitorImpl Class Reference

Inheritance diagram for alma.ACS.impl.CommonComparableMonitorImpl:
alma.ACS.impl.CommonMonitorImpl alma.ACS.jbaci.DataAccess.ValueChangeListener alma.ACS.jbaci.BACITimer.TimerRunnable alma.ACS.jbaci.PrioritizedRunnable alma.ACS.jbaci.BACIDispatchAction.DispatchFailedListener alma.ACS.impl.MonitordoubleImpl alma.ACS.impl.MonitorfloatImpl alma.ACS.impl.MonitorlongImpl alma.ACS.impl.MonitorlongLongImpl alma.ACS.impl.MonitorpatternImpl alma.ACS.impl.MonitorstringImpl alma.ACS.impl.MonitorstringSeqImpl alma.ACS.impl.MonitoruLongLongImpl

List of all members.

Classes

class  PoolTimer

Public Member Functions

 CommonComparableMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn)
 CommonComparableMonitorImpl (CommonPropertyImpl property, Callback callback, CBDescIn descIn, long startTime)
void valueChanged (DataAccess source, Object oldValue, Object newValue)
synchronized void resume ()
synchronized void suspend ()
synchronized void setValueTrigger (boolean enable)
synchronized void setValueTrigger (Object delta, boolean enable)
Object getValueTrigger (BooleanHolder enableHolder)

Static Public Attributes

static final long DEFAULT_POOL_TIME = 1000

Protected Member Functions

synchronized void enable ()
synchronized void disable ()

Protected Attributes

Object deltaValue
boolean onEveryChange
CommonComparablePropertyImpl comparableProperty
Object oldValue
boolean enabled
Object poolTimerTask

Detailed Description

Implementation of common compareable (notifies on change) monitor.

Author:
Matej Sekoranja
Version:
$id$

Constructor & Destructor Documentation

alma.ACS.impl.CommonComparableMonitorImpl.CommonComparableMonitorImpl ( CommonPropertyImpl  property,
Callback  callback,
CBDescIn  descIn 
)

Constructor with immediate monitor notification (synchronized monitors supported).

Parameters:
property property to be monitored, non-null.
callback callback, non-null.
descIn callback in-descriptor.
alma.ACS.impl.CommonComparableMonitorImpl.CommonComparableMonitorImpl ( CommonPropertyImpl  property,
Callback  callback,
CBDescIn  descIn,
long  startTime 
)

Constructor.

Parameters:
property property to be monitored, non-null.
callback callback, non-null.
descIn callback in-descriptor.
startTime startTime (OMG time), values less or equal to current time mean immediately, value 0 means that start time should be controlled automatically (synchronized monitors).

References alma.ACS.impl.CommonComparableMonitorImpl.comparableProperty, and alma.ACS.impl.CommonComparableMonitorImpl.enabled.


Member Function Documentation

Object alma.ACS.impl.CommonComparableMonitorImpl.getValueTrigger ( BooleanHolder  enableHolder  ) 
synchronized void alma.ACS.impl.CommonComparableMonitorImpl.resume (  ) 
synchronized void alma.ACS.impl.CommonComparableMonitorImpl.setValueTrigger ( Object  delta,
boolean  enable 
)

Enable on-delta-change monitoring, requires to operatie on CommonComparableProperty.

Parameters:
delta delta value, non-null.
enable switch to enable/disable
See also:
alma.ACS.Monitor<type>Operations.set_value_trigger(<type>, boolean)

References alma.ACS.impl.CommonComparableMonitorImpl.comparableProperty, alma.ACS.impl.CommonComparableMonitorImpl.deltaValue, alma.ACS.impl.CommonComparableMonitorImpl.disable(), alma.ACS.impl.CommonComparableMonitorImpl.enable(), alma.ACS.impl.CommonComparablePropertyImpl.noDelta(), and alma.ACS.impl.CommonComparableMonitorImpl.onEveryChange.

synchronized void alma.ACS.impl.CommonComparableMonitorImpl.setValueTrigger ( boolean  enable  ) 
synchronized void alma.ACS.impl.CommonComparableMonitorImpl.suspend (  ) 

Member Data Documentation

Default pool time (if on-change notification are not supported) in ms.

Referenced by alma.ACS.impl.CommonComparableMonitorImpl.enable().

Flag if notification has to be done on every value change. NOTE: this mode is explicitly used for non-comparable properties, i.e. properties is implementing CommonComparablePropertyImpl.

Referenced by alma.ACS.impl.CommonComparableMonitorImpl.setValueTrigger(), and alma.ACS.impl.CommonComparableMonitorImpl.valueChanged().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties