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

alma::ACS::impl::CommonComparablePropertyImpl Class Reference

Inheritance diagram for alma::ACS::impl::CommonComparablePropertyImpl:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommonComparablePropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent) throws PropertyInitializationFailed
 CommonComparablePropertyImpl (Class propertyType, String name, CharacteristicComponentImpl parentComponent, DataAccess dataAccess) throws PropertyInitializationFailed
void readCharacteristics () throws PropertyInitializationFailed
abstract boolean lessThanDelta (Object value1, Object value2, Object delta)
abstract boolean noDelta (Object value)
abstract Object sum (Object value1, Object value2, boolean substract)

Protected Attributes

Object graphMin
Object graphMax
Object minStep
Object minDeltaTrigger

Detailed Description

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


Constructor & Destructor Documentation

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

Constructor.

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::CommonComparablePropertyImpl::CommonComparablePropertyImpl 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 data access to be use, non-null.
Exceptions:
PropertyInitializationFailed exception is thrown on failure


Member Function Documentation

abstract boolean alma::ACS::impl::CommonComparablePropertyImpl::lessThanDelta Object  value1,
Object  value2,
Object  delta
[pure virtual]
 

Check if absolute difference between values is less than delta value

Parameters:
value value
delta delta value
Returns:
true if difference between this object's value and given value is less that delta value

Implemented in alma::ACS::impl::ROdoubleImpl, and alma::ACS::impl::RWdoubleImpl.

abstract boolean alma::ACS::impl::CommonComparablePropertyImpl::noDelta Object  value  )  [pure virtual]
 

Check if value equals no change (e.g. for double 0.0, int 0)

Returns:
if value equals no change

Implemented in alma::ACS::impl::ROdoubleImpl, and alma::ACS::impl::RWdoubleImpl.

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

Read property characteristics.

Exceptions:
PropertyInitializationFailed exception is thrown on failure

Reimplemented from alma::ACS::impl::CommonPropertyImpl.

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

abstract Object alma::ACS::impl::CommonComparablePropertyImpl::sum Object  value1,
Object  value2,
boolean  substract
[pure virtual]
 

Calculate a sum of two values.

Parameters:
value1 first value.
value2 second value.
substract negate value2.
Returns:
value of (value1 + (substract ? -value2 : value2)).

Implemented in alma::ACS::impl::ROdoubleImpl, and alma::ACS::impl::RWdoubleImpl.


Member Data Documentation

Object alma::ACS::impl::CommonComparablePropertyImpl::graphMax [protected]
 

Max graph value.

Object alma::ACS::impl::CommonComparablePropertyImpl::graphMin [protected]
 

Min graph value.

Object alma::ACS::impl::CommonComparablePropertyImpl::minDeltaTrigger [protected]
 

Min delta value (on-change monitors).

Object alma::ACS::impl::CommonComparablePropertyImpl::minStep [protected]
 

Min step value.


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