fr.esrf.tangoatk.core.attribute
Class AAttribute

java.lang.Object
  extended by fr.esrf.tangoatk.core.attribute.AAttribute
All Implemented Interfaces:
fr.esrf.TangoApi.events.ITangoChangeListener, fr.esrf.TangoApi.events.ITangoPeriodicListener, IAttribute, IEntity, IRefreshee, fr.esrf.TangoDs.TangoConst, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
ANumber, BooleanImage, BooleanScalar, BooleanSpectrum, DevStateScalar, DevStateSpectrum, EnumScalar, InvalidAttribute, RawImage, StringImage, StringScalar, StringSpectrum

public abstract class AAttribute
extends java.lang.Object
implements IAttribute, fr.esrf.TangoApi.events.ITangoPeriodicListener, fr.esrf.TangoApi.events.ITangoChangeListener

See Also:
Serialized Form

Field Summary
protected  java.lang.String alias
           
protected  boolean attPropertiesLoaded
           
protected  fr.esrf.TangoApi.DeviceAttribute attribute
           
protected  long changeCount
           
protected  fr.esrf.TangoApi.AttributeInfoEx config
           
protected  Device device
           
protected  java.lang.String error
           
protected  fr.esrf.Tango.DevFailed eventError
           
protected  java.lang.String name
           
protected  java.lang.String nameSansDevice
           
protected  long periodicCount
           
protected  EventSupport propChanges
           
protected  PropertyStorage propertyStorage
           
protected  long refreshCount
           
protected  boolean skippingRefresh
           
protected  java.lang.String state
           
protected  AtkTimer timer
           
protected  long timeStamp
           
 
Fields inherited from interface fr.esrf.tangoatk.core.IAttribute
ALARM, CHANGING, INVALID, OK, UNKNOWN, VALID, WARNING
 
Fields inherited from interface fr.esrf.TangoDs.TangoConst
ACCESS_READ, ACCESS_SERVICE, ACCESS_WRITE, ARCHIVE_EVENT, ATT_CONF_EVENT, Attr_AdmName, Attr_Description, Attr_Name, Attr_State, Attr_Status, Attr_Unknown, ATTRIBUTE, BY_CLASS, BY_DEVICE, BY_PROCESS, CHANGE_EVENT, COMMAND, CONTROL_SYSTEM, DATA_READY_EVENT, DEFAULT_LOCK_VALIDITY, eventNames, LOGGING_CONSOLE_TARGET, LOGGING_CONSOLE_TARGET_ID, LOGGING_DEBUG, LOGGING_DEF_RFT, LOGGING_DEVICE_TARGET, LOGGING_DEVICE_TARGET_ID, LOGGING_ERROR, LOGGING_FATAL, LOGGING_FILE_TARGET, LOGGING_FILE_TARGET_ID, LOGGING_INFO, LOGGING_LEVELS, LOGGING_MAX_RFT, LOGGING_MIN_RFT, LOGGING_OFF, LOGGING_SEPARATOR, LOGGING_UNKNOWN_TARGET_ID, LOGGING_WARN, NO_SYNC, NOT_STATELESS, NotANumber, Op_BlackBox, Op_Command, Op_Command_2, Op_Command_inout, Op_Command_inout_2, Op_Command_inout_history_2, Op_Command_list, Op_Command_list_2, Op_Get_Attr_Config, Op_Get_Attr_Config_2, Op_Info, Op_Ping, Op_Read_Attr, Op_Read_Attr_2, Op_Read_Attr_history_2, Op_Set_Attr_Config, Op_Unknown, Op_Write_Attr, PERIODIC_EVENT, QUALITY_EVENT, Req_Attribute, Req_Operation, Req_Unknown, SERVICE_PROP_NAME, STATELESS, Tango_AllAttr, Tango_AllAttr_3, Tango_AlrmValueNotSpec, Tango_AssocWritNotSpec, Tango_AttrDataFormatName, Tango_CLNT_TIMEOUT, Tango_CmdArgTypeName, Tango_CONST_DEV_STRING, Tango_DbObjName, Tango_DEFAULT_POLL_OLD_FACTOR, Tango_DEFAULT_TIMEOUT, Tango_DEFAULT_TIMEOUT_SEC, Tango_DefaultBlackBoxDepth, Tango_DefaultDocUrl, Tango_DefaultPollRingDepth, Tango_DefaultWritableProp, Tango_DELTA_T, Tango_DescNotSet, Tango_DescNotSpec, Tango_DEV_BOOLEAN, Tango_DEV_CHAR, Tango_DEV_DOUBLE, Tango_DEV_ENCODED, Tango_DEV_FLOAT, Tango_DEV_INT, Tango_DEV_LONG, Tango_DEV_LONG64, Tango_DEV_SHORT, Tango_DEV_STATE, Tango_DEV_STRING, Tango_DEV_UCHAR, Tango_DEV_ULONG, Tango_DEV_ULONG64, Tango_DEV_USHORT, Tango_DEV_VOID, Tango_DevStateName, Tango_DEVVAR_CHARARRAY, Tango_DEVVAR_DOUBLEARRAY, Tango_DEVVAR_DOUBLESTRINGARRAY, Tango_DEVVAR_FLOATARRAY, Tango_DEVVAR_LONG64ARRAY, Tango_DEVVAR_LONGARRAY, Tango_DEVVAR_LONGSTRINGARRAY, Tango_DEVVAR_SHORTARRAY, Tango_DEVVAR_STRINGARRAY, Tango_DEVVAR_ULONG64ARRAY, Tango_DEVVAR_ULONGARRAY, Tango_DEVVAR_USHORTARRAY, Tango_DevVersion, Tango_DISCARD_THRESHOLD, Tango_DispUnitNotSpec, Tango_DSDeviceDomain, Tango_EXPERT_ATTR, Tango_EXPERT_CMD, Tango_FormatNotSpec, Tango_InitialOutput, Tango_LabelNotSpec, TANGO_LOG_PATH, Tango_MAX_TRANSFER_SIZE, Tango_MaxServerNameLength, Tango_MIN_POLL_PERIOD, Tango_OPERATOR_ATTR, Tango_OPERATOR_CMD, Tango_POLL_ADD_OBJ, Tango_POLL_ATTR, Tango_POLL_CMD, Tango_POLL_REM_DEV, Tango_POLL_REM_OBJ, Tango_POLL_START, Tango_POLL_STOP, Tango_POLL_UPD_PERIOD, Tango_PollAttribute, Tango_PollCommand, Tango_QualityName, Tango_REL_1, Tango_REL_2, Tango_ResNotDefined, Tango_StdUnitNotSpec, Tango_SysProperty, Tango_TG_IMP_MINOR_DEVFAILED, Tango_TG_IMP_MINOR_NON_DEVFAILED, Tango_TG_IMP_MINOR_TO, Tango_TgLibVers, Tango_UnitNotSpec, USER_EVENT
 
Constructor Summary
protected AAttribute()
           
 
Method Summary
 void addErrorListener(IErrorListener l)
          An IErrorListener is an object that listens to error property changes from this object.
 void addSetErrorListener(ISetErrorListener l)
          An ISetErrorListener is an object that listens to setting error property changes from this sttribute.
 void addStateListener(IAttributeStateListener l)
          addStateListener adds a listener to state-changes for this attribute.
 boolean areAttPropertiesLoaded()
          areAttPropertiesLoaded returns true if the some ATK specific attribute properties have already been loaded from the Tango DB.
protected  void checkDimensions(boolean[][] o)
           
protected  void checkDimensions(double[][] o)
           
protected  void checkDimensions(java.lang.Object[][] o)
           
static java.lang.String[] flatten(java.lang.String[][] src)
           
 void freeInternalData()
           
 java.lang.String getAlias()
           
 fr.esrf.TangoApi.DeviceAttribute getAttribute()
          getAttribute returns the lowlevel attribute of this attribute.
 long getChangeCount()
           
 java.lang.String getDescription()
          getDescription returns the description of this attribute.
 Device getDevice()
          getDevice returns the device this IEntity belongs to.
 fr.esrf.TangoApi.DeviceAttribute getDeviceAttribute()
           
 java.lang.String getDisplayUnit()
          getDisplayUnit returns the display unit of this attribute
 double getDisplayUnitFactor()
          getDisplayUnitFactor returns the DisplayUnit Multiplication factor of this attribute.
 java.lang.String getFormat()
          getFormat returns the human readable representation of the format of this attribute.
 int getHeight()
          getHeight alias for getYDimension()
 java.lang.String getLabel()
          getLabel returns the label of this attribute.
 int getLevel()
           
 AtkEventListenerList getListenerList()
           
 int getMaxXDimension()
          getMaxXDimension returns the max x-dimension of the attribute
 int getMaxYDimension()
          getMaxYDimension returns the max y-dimension of the attribute
 java.lang.String getName()
          Gets the name of this IEntity
 java.lang.String getNameSansDevice()
           
 long getPeriodicCount()
           
 EventSupport getPropChanges()
           
 Property getProperty(java.lang.String name)
          getProperty returns property with the name given in the first parameter.
 java.util.Map getPropertyMap()
          getPropertyMap returns a Map containing this entitys properties.
static java.lang.String[] getPropertyNames()
           
 PropertyStorage getPropertyStorage()
           
 long getRefreshCount()
           
 java.lang.String getStandardUnit()
          getStandardUnit returns the standard unit of this attribute
 double getStandardUnitFactor()
          getStandardUnitFactor returns the standard unit of this attribute.
 java.lang.String getState()
          getState returns a human-readable representation of the state.
 java.lang.String getSubscriptionError()
          Returns a string that describe the error which occurs during event subscription.
 fr.esrf.Tango.AttrDataFormat getTangoDataFormat()
          getTangoDataFormat returns the data format of this attribute.
 int getTangoDataType()
          getTangoDataType returns the type of this attribute.
 java.lang.String getType()
          getType returns a human-readable representaion of the type of this attribute.
 java.lang.String getUnit()
          getUnit returns the unit of this attribute.
 java.lang.String getVersion()
           
 int getWidth()
          getWidth alias for getXDimension()
 int getXDimension()
          getXDimension returns the actual x-dimension of the attribute.
 int getYDimension()
          getYDimension returns the actual y-dimension of the attribute
 boolean hasEvents()
          hasEvents returns true if the attribute is refreshed by event system
protected  void init(Device d, java.lang.String name, fr.esrf.TangoApi.AttributeInfoEx config, boolean doEvent)
           
 boolean isExpert()
           
 boolean isOperator()
           
 boolean isSkippingRefresh()
           
 boolean isWritable()
          isWritable returns true if this attribute is writable
 void loadAttProperties()
          Method used by some attribute viewers to force the reading of some specific at setModel().
protected  void readAttError(java.lang.String s, java.lang.Throwable t)
           
protected  fr.esrf.TangoApi.DeviceDataHistory[] readAttHistoryFromNetwork()
           
protected  fr.esrf.TangoApi.DeviceAttribute readDeviceValueFromNetwork()
           
protected  fr.esrf.TangoApi.DeviceAttribute readValueFromNetwork()
           
 void removeErrorListener(IErrorListener l)
          Removes the given IErrorListener from this objects list of errorlisteners.
 void removeSetErrorListener(ISetErrorListener l)
          Removes a setErrorListener.
 void removeStateListener(IAttributeStateListener l)
          removeStateListener removes a listener to state-changes for this attribute.
protected  void serializeInit()
           
 void setAlias(java.lang.String alias)
           
protected  void setAttError(java.lang.String s, java.lang.Throwable t)
           
protected  void setConfiguration(fr.esrf.TangoApi.AttributeInfoEx c)
           
 void setDescription(java.lang.String desc)
          setDescription sets the description of this attribute
 void setDevice(Device d)
           
 void setLabel(java.lang.String label)
          setLabel sets the label of this attribute
 void setName(java.lang.String s)
          setName sets the name of this attribute.
 void setProperty(java.lang.String name, java.lang.Number value)
          setProperty
 void setProperty(java.lang.String name, java.lang.Number value, boolean editable)
          setProperty
 void setPropertyStorage(PropertyStorage propertyStorage)
           
 void setSkippingRefresh(boolean b)
          Setting this property to true means that the attribute should not read nor distribute new values when its refresh is called
protected  void setState()
           
protected  void setState(fr.esrf.TangoApi.DeviceAttribute da)
           
protected  void setState(java.lang.String s)
           
 void storeConfig()
           
 java.lang.String toString()
           
protected  void writeAtt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.esrf.tangoatk.core.IAttribute
dispatch, dispatchError
 
Methods inherited from interface fr.esrf.tangoatk.core.IRefreshee
refresh
 
Methods inherited from interface fr.esrf.TangoApi.events.ITangoPeriodicListener
periodic
 
Methods inherited from interface fr.esrf.TangoApi.events.ITangoChangeListener
change
 

Field Detail

config

protected transient fr.esrf.TangoApi.AttributeInfoEx config

propertyStorage

protected PropertyStorage propertyStorage

propChanges

protected EventSupport propChanges

device

protected Device device

attribute

protected fr.esrf.TangoApi.DeviceAttribute attribute

error

protected java.lang.String error

nameSansDevice

protected java.lang.String nameSansDevice

name

protected java.lang.String name

timer

protected transient AtkTimer timer

state

protected java.lang.String state

timeStamp

protected long timeStamp

skippingRefresh

protected boolean skippingRefresh

alias

protected java.lang.String alias

refreshCount

protected long refreshCount

changeCount

protected long changeCount

periodicCount

protected long periodicCount

eventError

protected fr.esrf.Tango.DevFailed eventError

attPropertiesLoaded

protected boolean attPropertiesLoaded
Constructor Detail

AAttribute

protected AAttribute()
Method Detail

getVersion

public java.lang.String getVersion()

serializeInit

protected void serializeInit()
                      throws java.io.IOException
Throws:
java.io.IOException

init

protected void init(Device d,
                    java.lang.String name,
                    fr.esrf.TangoApi.AttributeInfoEx config,
                    boolean doEvent)

hasEvents

public boolean hasEvents()
Description copied from interface: IAttribute
hasEvents returns true if the attribute is refreshed by event system

Specified by:
hasEvents in interface IAttribute
Returns:
true if the attribute is refreshed thanks to event system false if it is refreshed by the ATK refresher thread

getRefreshCount

public long getRefreshCount()

getChangeCount

public long getChangeCount()

getPeriodicCount

public long getPeriodicCount()

getSubscriptionError

public java.lang.String getSubscriptionError()
Returns a string that describe the error which occurs during event subscription.


getDeviceAttribute

public fr.esrf.TangoApi.DeviceAttribute getDeviceAttribute()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPropChanges

public EventSupport getPropChanges()

getType

public java.lang.String getType()
Description copied from interface: IAttribute
getType returns a human-readable representaion of the type of this attribute.

Specified by:
getType in interface IAttribute
Returns:
a String value

getTangoDataType

public int getTangoDataType()
Description copied from interface: IAttribute
getTangoDataType returns the type of this attribute.

Specified by:
getTangoDataType in interface IAttribute
Returns:
an int value

getTangoDataFormat

public fr.esrf.Tango.AttrDataFormat getTangoDataFormat()
Description copied from interface: IAttribute
getTangoDataFormat returns the data format of this attribute.

Specified by:
getTangoDataFormat in interface IAttribute
Returns:
an AttrDataFormat value

storeConfig

public void storeConfig()
Specified by:
storeConfig in interface IEntity

getFormat

public java.lang.String getFormat()
Description copied from interface: IAttribute
getFormat returns the human readable representation of the format of this attribute. To obtain the numeric code of the format, please consult getPropertyMap("format");

Specified by:
getFormat in interface IAttribute
Returns:
a String value

addErrorListener

public void addErrorListener(IErrorListener l)
Description copied from interface: IEntity
An IErrorListener is an object that listens to error property changes from this object.

Specified by:
addErrorListener in interface IEntity
Parameters:
l - an IErrorListener value

removeErrorListener

public void removeErrorListener(IErrorListener l)
Description copied from interface: IEntity
Removes the given IErrorListener from this objects list of errorlisteners.

Specified by:
removeErrorListener in interface IEntity
Parameters:
l - an IErrorListener value

addSetErrorListener

public void addSetErrorListener(ISetErrorListener l)
Description copied from interface: IAttribute
An ISetErrorListener is an object that listens to setting error property changes from this sttribute.

Specified by:
addSetErrorListener in interface IAttribute
Parameters:
l - an ISetErrorListener value

removeSetErrorListener

public void removeSetErrorListener(ISetErrorListener l)
Description copied from interface: IAttribute
Removes a setErrorListener. An ISetErrorListener is an object that listens to setting error property changes from this attribute.

Specified by:
removeSetErrorListener in interface IAttribute
Parameters:
l - an ISetErrorListener value

addStateListener

public void addStateListener(IAttributeStateListener l)
Description copied from interface: IAttribute
addStateListener adds a listener to state-changes for this attribute.

Specified by:
addStateListener in interface IAttribute
Parameters:
l - an IAttributeStateListener value

removeStateListener

public void removeStateListener(IAttributeStateListener l)
Description copied from interface: IAttribute
removeStateListener removes a listener to state-changes for this attribute.

Specified by:
removeStateListener in interface IAttribute
Parameters:
l - an IAttributeStateListener value

setDevice

public void setDevice(Device d)

getDevice

public Device getDevice()
Description copied from interface: IEntity
getDevice returns the device this IEntity belongs to.

Specified by:
getDevice in interface IEntity
Returns:
a fr.esrf.tangoatk.core.Device value

readAttError

protected void readAttError(java.lang.String s,
                            java.lang.Throwable t)

setAttError

protected void setAttError(java.lang.String s,
                           java.lang.Throwable t)

getUnit

public java.lang.String getUnit()
Description copied from interface: IAttribute
getUnit returns the unit of this attribute.

Specified by:
getUnit in interface IAttribute
Returns:
a String value

getStandardUnit

public java.lang.String getStandardUnit()
Description copied from interface: IAttribute
getStandardUnit returns the standard unit of this attribute

Specified by:
getStandardUnit in interface IAttribute
Returns:
a String value

getStandardUnitFactor

public double getStandardUnitFactor()
Description copied from interface: IAttribute
getStandardUnitFactor returns the standard unit of this attribute. The standard unit is the value which must be multiplied with the value of the attribute to obtain the value in a unit conforming to the standard metric system.

Specified by:
getStandardUnitFactor in interface IAttribute
Returns:
a double value

getDisplayUnit

public java.lang.String getDisplayUnit()
Description copied from interface: IAttribute
getDisplayUnit returns the display unit of this attribute

Specified by:
getDisplayUnit in interface IAttribute
Returns:
a String value

getDisplayUnitFactor

public double getDisplayUnitFactor()
Description copied from interface: IAttribute
getDisplayUnitFactor returns the DisplayUnit Multiplication factor of this attribute. The display unit factor is the value which must be multiplied with the value of the attribute (returned by the device server) to obtain the value which should be displayed (the value converted into display unit). All the Number Change Events inside ATK and the Viewers use the value converted into the display unit.

Specified by:
getDisplayUnitFactor in interface IAttribute
Returns:
a double value returns 1.0 if the attribute property "display_unit" is not defined or has an invalid value returns the value defined by the attribute property "display_unit".

getLabel

public java.lang.String getLabel()
Description copied from interface: IAttribute
getLabel returns the label of this attribute.

Specified by:
getLabel in interface IAttribute
Returns:
a String value

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: IAttribute
setLabel sets the label of this attribute

Specified by:
setLabel in interface IAttribute
Parameters:
label - a String value

setName

public void setName(java.lang.String s)
Description copied from interface: IAttribute
setName sets the name of this attribute.

Specified by:
setName in interface IAttribute
Parameters:
s - a String value

setDescription

public void setDescription(java.lang.String desc)
Description copied from interface: IAttribute
setDescription sets the description of this attribute

Specified by:
setDescription in interface IAttribute
Parameters:
desc - a String value

getDescription

public java.lang.String getDescription()
Description copied from interface: IAttribute
getDescription returns the description of this attribute.

Specified by:
getDescription in interface IAttribute
Returns:
a String value

getLevel

public int getLevel()

isOperator

public boolean isOperator()
Specified by:
isOperator in interface IEntity

isExpert

public boolean isExpert()
Specified by:
isExpert in interface IEntity

setConfiguration

protected void setConfiguration(fr.esrf.TangoApi.AttributeInfoEx c)

getPropertyNames

public static java.lang.String[] getPropertyNames()

getAlias

public java.lang.String getAlias()
Specified by:
getAlias in interface IEntity

setAlias

public void setAlias(java.lang.String alias)
Specified by:
setAlias in interface IEntity

getName

public java.lang.String getName()
Description copied from interface: IEntity
Gets the name of this IEntity

Specified by:
getName in interface IEntity
Returns:
String the name of the IEntity

getNameSansDevice

public java.lang.String getNameSansDevice()
Specified by:
getNameSansDevice in interface IEntity

isWritable

public boolean isWritable()
Description copied from interface: IAttribute
isWritable returns true if this attribute is writable

Specified by:
isWritable in interface IAttribute
Returns:
a boolean value

readValueFromNetwork

protected final fr.esrf.TangoApi.DeviceAttribute readValueFromNetwork()
                                                               throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

readDeviceValueFromNetwork

protected final fr.esrf.TangoApi.DeviceAttribute readDeviceValueFromNetwork()
                                                                     throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

setState

protected void setState()
                 throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

setState

protected void setState(fr.esrf.TangoApi.DeviceAttribute da)
                 throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getAttribute

public fr.esrf.TangoApi.DeviceAttribute getAttribute()
Description copied from interface: IAttribute
getAttribute returns the lowlevel attribute of this attribute.

Specified by:
getAttribute in interface IAttribute
Returns:
a DeviceAttribute value

setState

protected void setState(java.lang.String s)

getState

public java.lang.String getState()
Description copied from interface: IAttribute
getState returns a human-readable representation of the state.

Specified by:
getState in interface IAttribute
Returns:
a String value

writeAtt

protected void writeAtt()
                 throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getMaxXDimension

public int getMaxXDimension()
Description copied from interface: IAttribute
getMaxXDimension returns the max x-dimension of the attribute

Specified by:
getMaxXDimension in interface IAttribute
Returns:
an int value

getMaxYDimension

public int getMaxYDimension()
Description copied from interface: IAttribute
getMaxYDimension returns the max y-dimension of the attribute

Specified by:
getMaxYDimension in interface IAttribute
Returns:
an int value

getYDimension

public int getYDimension()
Description copied from interface: IAttribute
getYDimension returns the actual y-dimension of the attribute

Specified by:
getYDimension in interface IAttribute
Returns:
an int value

getHeight

public int getHeight()
Description copied from interface: IAttribute
getHeight alias for getYDimension()

Specified by:
getHeight in interface IAttribute
Returns:
an int value

getXDimension

public int getXDimension()
Description copied from interface: IAttribute
getXDimension returns the actual x-dimension of the attribute.

Specified by:
getXDimension in interface IAttribute
Returns:
an int value

getWidth

public int getWidth()
Description copied from interface: IAttribute
getWidth alias for getXDimension()

Specified by:
getWidth in interface IAttribute
Returns:
an int value

setSkippingRefresh

public void setSkippingRefresh(boolean b)
Description copied from interface: IAttribute
Setting this property to true means that the attribute should not read nor distribute new values when its refresh is called

Specified by:
setSkippingRefresh in interface IAttribute

isSkippingRefresh

public boolean isSkippingRefresh()
Specified by:
isSkippingRefresh in interface IAttribute

checkDimensions

protected void checkDimensions(java.lang.Object[][] o)

checkDimensions

protected void checkDimensions(double[][] o)

checkDimensions

protected void checkDimensions(boolean[][] o)

flatten

public static java.lang.String[] flatten(java.lang.String[][] src)

readAttHistoryFromNetwork

protected final fr.esrf.TangoApi.DeviceDataHistory[] readAttHistoryFromNetwork()
                                                                        throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getListenerList

public AtkEventListenerList getListenerList()
Specified by:
getListenerList in interface IEntity

freeInternalData

public void freeInternalData()

getProperty

public Property getProperty(java.lang.String name)
getProperty returns property with the name given in the first parameter.

Specified by:
getProperty in interface IEntity
Parameters:
name - a String value
Returns:
an Property value

getPropertyMap

public java.util.Map getPropertyMap()
getPropertyMap returns a Map containing this entitys properties.

Specified by:
getPropertyMap in interface IEntity
Returns:
a Map value

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Number value)
setProperty

Specified by:
setProperty in interface IAttribute
Parameters:
name - a String value containing the name of the property
n - a Number value containing the numeric value of the property

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Number value,
                        boolean editable)
setProperty

Specified by:
setProperty in interface IAttribute
Parameters:
name - a String value containing the name of the property
n - a Number value containing the value of the property
editable - a boolean value which decides if the property is editable or not.

getPropertyStorage

public PropertyStorage getPropertyStorage()

setPropertyStorage

public void setPropertyStorage(PropertyStorage propertyStorage)

areAttPropertiesLoaded

public boolean areAttPropertiesLoaded()
Description copied from interface: IAttribute
areAttPropertiesLoaded returns true if the some ATK specific attribute properties have already been loaded from the Tango DB. One example for these ATK specific attribute properties is : OpenCloseInverted for a DevStateScalar attribute

Specified by:
areAttPropertiesLoaded in interface IAttribute
Returns:
true if all the attribute properties have been read from the Tango DB and initialized false the ATK specific attribute properties have not been initialized yet

loadAttProperties

public void loadAttProperties()
Description copied from interface: IAttribute
Method used by some attribute viewers to force the reading of some specific at setModel(). The viewer first tests if the ATK specific attribute properties have not been initialized yet (call to areAttPropertiesLoaded())

Specified by:
loadAttProperties in interface IAttribute