alma::ACS::impl::CommonComparableMonitorImpl Class Reference

Inheritance diagram for alma::ACS::impl::CommonComparableMonitorImpl:
Inheritance graph
[legend]
Collaboration diagram for alma::ACS::impl::CommonComparableMonitorImpl:
Collaboration graph
[legend]

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 
) [inline]

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 
) [inline]

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 comparableProperty, and enabled.


Member Function Documentation

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::disable (  )  [inline, protected]

Disable on-change monitoring/pooling.

References enabled, and poolTimerTask.

Referenced by enable(), setValueTrigger(), and suspend().

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::enable (  )  [inline, protected]
Object alma::ACS::impl::CommonComparableMonitorImpl::getValueTrigger ( BooleanHolder  enableHolder  )  [inline]
synchronized void alma::ACS::impl::CommonComparableMonitorImpl::resume (  )  [inline]
synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger ( Object  delta,
boolean  enable 
) [inline]

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 comparableProperty, deltaValue, disable(), enable(), alma::ACS::impl::CommonComparablePropertyImpl::noDelta(), and onEveryChange.

synchronized void alma::ACS::impl::CommonComparableMonitorImpl::setValueTrigger ( boolean  enable  )  [inline]
synchronized void alma::ACS::impl::CommonComparableMonitorImpl::suspend (  )  [inline]
void alma::ACS::impl::CommonComparableMonitorImpl::valueChanged ( DataAccess  source,
Object  oldValue,
Object  newValue 
) [inline]

Member Data Documentation

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

Referenced by enable().

Current required delta.

Referenced by getValueTrigger(), setValueTrigger(), and valueChanged().

Enabled status (might be true even if disabled (if suspended)) - user status.

Referenced by CommonComparableMonitorImpl(), disable(), enable(), getValueTrigger(), resume(), and suspend().

Last pooled (notified) value.

Referenced by enable(), and alma::ACS::impl::CommonComparableMonitorImpl::PoolTimer::run().

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 setValueTrigger(), and valueChanged().

Monitor timer task.

Referenced by disable(), and enable().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2