Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::ACS::impl::CommonPropertyImpl Class Reference

Inheritance diagram for alma::ACS::impl::CommonPropertyImpl:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommonPropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent) throws PropertyInitializationFailed
 CommonPropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent, DataAccess dataAccess) throws PropertyInitializationFailed
void readCharacteristics () throws PropertyInitializationFailed
DataAccess getDataAccess ()
void destroy ()
long default_timer_trigger ()
long min_timer_trigger ()
abstract Object readPropertyTypeCharacteristic (String name) throws NoSuchCharacteristic
Monitor registerMonitor (MonitorOperations monitorImpl, Servant monitorServant)
void unregisterMonitor (MonitorOperations monitorImpl)
Object mnemonicValue (long keyTime, CompletionHolder completionHolder)

Protected Member Functions

void addValueToHistory (Object value, long timestamp)
Object getHistory (int lastValues, TimeSeqHolder timeSeqHolder)
Object getSync (CompletionHolder completionHolder) throws AcsJException
void getAsync (Callback callback, CBDescIn desc)
Completion setSync (Object value) throws AcsJException
void setAsync (Object value, CBvoid callback, CBDescIn desc)
void setNonblocking (Object value)

Protected Attributes

long defaultTimerTrigger
long minTimerTrigger
Object defaultValue
DataAccess dataAccess
Class propertyType
int historySize
int historyPosition
boolean historyTurnaround
Object historyValue
long[] historyTime
Map monitors
long mnemonicReadPending = 0
Object mnemonicValueRetrival = new Object()
ReadWriteLock mnemonicDataLock
long mnemonicTime
Object mnemonicValue
Completion mnemonicCompletion

Detailed Description

Implementation of common property, i.e. type of java.lang.Object.
Author:
Matej Sekoranja
Version:
$id$


Constructor & Destructor Documentation

alma::ACS::impl::CommonPropertyImpl::CommonPropertyImpl Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent
throws PropertyInitializationFailed [inline]
 

Constructor with memory data access.

Parameters:
propertyType property Class type, non-null.
name property name, non-null.
parentComponent parent component, non-null.
Exceptions:
PropertyInitializationFailed exception is thrown on failure

alma::ACS::impl::CommonPropertyImpl::CommonPropertyImpl Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess
throws PropertyInitializationFailed [inline]
 

Constructor.

Parameters:
propertyType property Class type, non-null.
name property name, non-null.
parentComponent parent component, non-null.
dataAccess read-write data access to be use, non-null.
Exceptions:
PropertyInitializationFailed exception is thrown on failure


Member Function Documentation

void alma::ACS::impl::CommonPropertyImpl::addValueToHistory Object  value,
long  timestamp
[inline, protected]
 

Add value to the history.

Parameters:
value value to be added to the history.
timestamp value timestamp (OMG) to be added to the history.

long alma::ACS::impl::CommonPropertyImpl::default_timer_trigger  )  [inline]
 

See also:
alma.ACS.P<type>Operations#default_timer_trigger()

void alma::ACS::impl::CommonPropertyImpl::destroy  )  [inline]
 

See also:
alma.ACS.PropertyImpl#destroy()

Reimplemented from alma::ACS::impl::PropertyImpl.

void alma::ACS::impl::CommonPropertyImpl::getAsync Callback  callback,
CBDescIn  desc
[inline, protected]
 

See also:
alma.ACS.P<type>Operations#get_async(alma.ACS.CB<type>, alma.ACS.CBDescIn)

DataAccess alma::ACS::impl::CommonPropertyImpl::getDataAccess  )  [inline]
 

Get property data access layer.

Returns:
property data access.

Object alma::ACS::impl::CommonPropertyImpl::getHistory int  lastValues,
TimeSeqHolder  timeSeqHolder
[inline, protected]
 

Object alma::ACS::impl::CommonPropertyImpl::getSync CompletionHolder  completionHolder  )  throws AcsJException [inline, protected]
 

See also:
alma.ACS.P<type>Operations#get_sync(alma.ACSErr.CompletionHolder)

long alma::ACS::impl::CommonPropertyImpl::min_timer_trigger  )  [inline]
 

See also:
alma.ACS.P<type>Operations#min_timer_trigger()

Object alma::ACS::impl::CommonPropertyImpl::mnemonicValue long  keyTime,
CompletionHolder  completionHolder
[inline]
 

Mnemonic value retrival. If keyTime == mnemonicTime cached mnemonic value is returned.

Parameters:
keyTime time (java) of mnemonic request.
completionHolder completion holder that will be given completion. NOTE: completion is passsed by reference, so do not change its value, copy its value before and do it on a local copy
Returns:
current property value.
See also:
getSync

void alma::ACS::impl::CommonPropertyImpl::readCharacteristics  )  throws PropertyInitializationFailed [inline]
 

Read property characteristics.

Exceptions:
PropertyInitializationFailed exception is thrown on failure

Reimplemented from alma::ACS::impl::TypelessPropertyImpl.

Reimplemented in alma::ACS::impl::CommonComparablePropertyImpl, alma::ACS::impl::ROCommonComparablePropertyImpl, and alma::ACS::impl::RWCommonComparablePropertyImpl.

abstract Object alma::ACS::impl::CommonPropertyImpl::readPropertyTypeCharacteristic String  name  )  throws NoSuchCharacteristic [pure virtual]
 

Read property type characteristic.

Exceptions:
NoSuchCharacteristic is thrown if characterstic does not exist.

Implemented in alma::ACS::impl::ROdoubleImpl, alma::ACS::impl::ROpatternImpl, alma::ACS::impl::ROstringImpl, alma::ACS::impl::ROstringSeqImpl, and alma::ACS::impl::RWdoubleImpl.

Monitor alma::ACS::impl::CommonPropertyImpl::registerMonitor MonitorOperations  monitorImpl,
Servant  monitorServant
[inline]
 

Register monitor on this property (and optionally CORBA activate). Registration is needed for monitor destruction on property destruction.

Parameters:
monitorImpl monitor implementation (e.g. class implementing MonitorOperations interface).
monitorServant monitor CORBA servant (e.g. Monitor<type>POATie class). If null monitor will be threated as non-CORBA monitor and no CORBA activation will be done.
Returns:
CORBA activated monitor reference, null if monitorServant == null.

void alma::ACS::impl::CommonPropertyImpl::setAsync Object  value,
CBvoid  callback,
CBDescIn  desc
[inline, protected]
 

See also:
alma.ACS.RW<type>Operations#get_async(<type>, alma.ACS.CBvoid, alma.ACS.CBDescIn)

void alma::ACS::impl::CommonPropertyImpl::setNonblocking Object  value  )  [inline, protected]
 

See also:
void alma.ACS.RW<type>Operations#set_nonblocking(<type>)

Completion alma::ACS::impl::CommonPropertyImpl::setSync Object  value  )  throws AcsJException [inline, protected]
 

See also:
alma.ACSErr.Completion alma.ACS.RW<type>Operations#set_sync(<type>)

void alma::ACS::impl::CommonPropertyImpl::unregisterMonitor MonitorOperations  monitorImpl  )  [inline]
 

Unregister monitor on this property (and optionally CORBA deactivate). Should be called by MonitorOperations.destroy() method.


Member Data Documentation

DataAccess alma::ACS::impl::CommonPropertyImpl::dataAccess [protected]
 

Read-only data access.

long alma::ACS::impl::CommonPropertyImpl::defaultTimerTrigger [protected]
 

Default timer trigger (in 100ns units).

Object alma::ACS::impl::CommonPropertyImpl::defaultValue [protected]
 

Default value.

int alma::ACS::impl::CommonPropertyImpl::historyPosition [protected]
 

Pointer in history arrays, points to first empty element.

int alma::ACS::impl::CommonPropertyImpl::historySize [protected]
 

History size, if 0 history is disabled.

long [] alma::ACS::impl::CommonPropertyImpl::historyTime [protected]
 

Array of history times (OMG standard time).

boolean alma::ACS::impl::CommonPropertyImpl::historyTurnaround [protected]
 

true, if values in history arrays exceed end of arrays (circular arrays).

Object alma::ACS::impl::CommonPropertyImpl::historyValue [protected]
 

Array of history values.

long alma::ACS::impl::CommonPropertyImpl::minTimerTrigger [protected]
 

Min timer trigger (in 100ns units).

Completion alma::ACS::impl::CommonPropertyImpl::mnemonicCompletion [protected]
 

Completion of latest mnemonic value retrival.

ReadWriteLock alma::ACS::impl::CommonPropertyImpl::mnemonicDataLock [protected]
 

Initial value:

new ReentrantReadWriteLock()
Mnemonic variables lock.

long alma::ACS::impl::CommonPropertyImpl::mnemonicReadPending = 0 [protected]
 

Mnemonic read time key of (last) pending read.

long alma::ACS::impl::CommonPropertyImpl::mnemonicTime [protected]
 

Time "key" (Java) if when last mnemonic retrival.

Object alma::ACS::impl::CommonPropertyImpl::mnemonicValue [protected]
 

Value of latest mnemonic value retrival.

Object alma::ACS::impl::CommonPropertyImpl::mnemonicValueRetrival = new Object() [protected]
 

Mnemonic read lock (dummy object).

Map alma::ACS::impl::CommonPropertyImpl::monitors [protected]
 

List of all property monitors (needed on property destruction).

Class alma::ACS::impl::CommonPropertyImpl::propertyType [protected]
 

Property Class type.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:09 2009 for ACS Java API by doxygen 1.3.8