Public Member Functions | Protected Attributes

alma.ACS.impl.CommonComparablePropertyImpl Class Reference

Inheritance diagram for alma.ACS.impl.CommonComparablePropertyImpl:
alma.ACS.impl.CommonPropertyImpl alma.ACS.impl.TypelessPropertyImpl alma.ACS.jbaci.CallbackDispatcher alma.ACS.impl.PropertyImpl alma.ACS.impl.ROCommonComparablePropertyImpl alma.ACS.impl.RWCommonComparablePropertyImpl alma.ACS.impl.ROdoubleImpl alma.ACS.impl.ROdoubleSeqImpl alma.ACS.impl.ROfloatImpl alma.ACS.impl.ROfloatSeqImpl alma.ACS.impl.ROlongImpl alma.ACS.impl.ROlongLongImpl alma.ACS.impl.ROlongSeqImpl alma.ACS.impl.ROOnOffSwitchImpl alma.ACS.impl.ROuLongLongImpl alma.ACS.impl.RWdoubleImpl alma.ACS.impl.RWdoubleSeqImpl alma.ACS.impl.RWfloatImpl alma.ACS.impl.RWfloatSeqImpl alma.ACS.impl.RWlongImpl alma.ACS.impl.RWlongLongImpl alma.ACS.impl.RWlongSeqImpl alma.ACS.impl.RWOnOffSwitchImpl alma.ACS.impl.RWpatternImpl alma.ACS.impl.RWuLongLongImpl

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

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

References alma.ACS.impl.PropertyImpl.parentComponent, and alma.ACS.impl.CommonPropertyImpl.propertyType.

alma.ACS.impl.CommonComparablePropertyImpl.CommonComparablePropertyImpl ( Class  propertyType,
String  name,
CharacteristicComponentImpl  parentComponent,
DataAccess  dataAccess 
) throws PropertyInitializationFailed

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

References alma.ACS.impl.CommonPropertyImpl.dataAccess, alma.ACS.impl.PropertyImpl.name(), alma.ACS.impl.PropertyImpl.parentComponent, and alma.ACS.impl.CommonPropertyImpl.propertyType.


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

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

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

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

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)).

Referenced by alma.ACS.impl.RWCommonComparablePropertyImpl.decrementImpl(), and alma.ACS.impl.RWCommonComparablePropertyImpl.incrementImpl().


Member Data Documentation


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