|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAttribute
IAttribute is the top interface for all attributes.
It defines the standard behaviour for the attributes. All attributes
at this level are images, eg their data is represented as an array in
two dimensions.
| Field Summary | |
|---|---|
static java.lang.String |
ALARM
|
static java.lang.String |
CHANGING
|
static java.lang.String |
INVALID
|
static java.lang.String |
OK
|
static java.lang.String |
UNKNOWN
|
static java.lang.String |
VALID
|
static java.lang.String |
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 |
| Method Summary | |
|---|---|
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. |
void |
dispatch(fr.esrf.TangoApi.DeviceAttribute attValue)
Method used by optimized AttributePolledList (one read per device) |
void |
dispatchError(fr.esrf.Tango.DevFailed e)
Method used by optimized AttributePolledList (one read per device) |
fr.esrf.TangoApi.DeviceAttribute |
getAttribute()
getAttribute returns the lowlevel attribute of this
attribute. |
java.lang.String |
getDescription()
getDescription returns the description of this attribute. |
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 |
getMaxXDimension()
getMaxXDimension returns the max x-dimension of the
attribute |
int |
getMaxYDimension()
getMaxYDimension returns the max y-dimension of the
attribute |
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. |
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. |
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 |
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(). |
void |
removeSetErrorListener(ISetErrorListener l)
Removes a setErrorListener. |
void |
removeStateListener(IAttributeStateListener l)
removeStateListener removes a listener to state-changes
for this attribute. |
void |
setDescription(java.lang.String desc)
setDescription sets the description of this attribute |
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 n)
setProperty |
void |
setProperty(java.lang.String name,
java.lang.Number n,
boolean editable)
setProperty |
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 |
| Methods inherited from interface fr.esrf.tangoatk.core.IEntity |
|---|
addErrorListener, getAlias, getDevice, getListenerList, getName, getNameSansDevice, getProperty, getPropertyMap, isExpert, isOperator, removeErrorListener, setAlias, storeConfig |
| Methods inherited from interface fr.esrf.tangoatk.core.IRefreshee |
|---|
refresh |
| Field Detail |
|---|
static final java.lang.String OK
static final java.lang.String UNKNOWN
static final java.lang.String VALID
static final java.lang.String INVALID
static final java.lang.String ALARM
static final java.lang.String WARNING
static final java.lang.String CHANGING
| Method Detail |
|---|
java.lang.String getFormat()
getFormat returns the human readable representation
of the format of this attribute. To obtain the numeric code of the
format, please consult getPropertyMap("format");
String valuejava.lang.String getUnit()
getUnit returns the unit of this attribute.
String valuejava.lang.String getDisplayUnit()
getDisplayUnit returns the display unit of this attribute
String valuedouble getDisplayUnitFactor()
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.
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".java.lang.String getStandardUnit()
getStandardUnit returns the standard unit of this attribute
String valuedouble getStandardUnitFactor()
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.
double valuefr.esrf.TangoApi.DeviceAttribute getAttribute()
getAttribute returns the lowlevel attribute of this
attribute.
DeviceAttribute valuejava.lang.String getLabel()
getLabel returns the label of this attribute.
String valuevoid setLabel(java.lang.String label)
setLabel sets the label of this attribute
label - a String valuejava.lang.String getState()
getState returns a human-readable representation of
the state.
String valuejava.lang.String getType()
getType returns a human-readable representaion of the
type of this attribute.
String valueint getTangoDataType()
getTangoDataType returns the type of this attribute.
int valuefr.esrf.Tango.AttrDataFormat getTangoDataFormat()
getTangoDataFormat returns the data format of this
attribute.
AttrDataFormat valuejava.lang.String getDescription()
getDescription returns the description of this attribute.
String valuevoid setDescription(java.lang.String desc)
setDescription sets the description of this attribute
desc - a String valuevoid setName(java.lang.String s)
setName sets the name of this attribute.
s - a String valueboolean isWritable()
isWritable returns true if this attribute is writable
boolean valuevoid addStateListener(IAttributeStateListener l)
addStateListener adds a listener to state-changes
for this attribute.
l - an IAttributeStateListener valuevoid removeStateListener(IAttributeStateListener l)
removeStateListener removes a listener to state-changes
for this attribute.
l - an IAttributeStateListener valuevoid addSetErrorListener(ISetErrorListener l)
ISetErrorListener is an object that listens to
setting error property changes from this sttribute.
l - an ISetErrorListener valuevoid removeSetErrorListener(ISetErrorListener l)
ISetErrorListener is an object that listens to
setting error property changes from this attribute.
l - an ISetErrorListener value
void setProperty(java.lang.String name,
java.lang.Number n)
setProperty
name - a String value containing the name of the
propertyn - a Number value containing the numeric value of
the property
void setProperty(java.lang.String name,
java.lang.Number n,
boolean editable)
setProperty
name - a String value containing the name of the
propertyn - a Number value containing the value of the
propertyeditable - a boolean value which decides if the
property is editable or not.int getMaxXDimension()
getMaxXDimension returns the max x-dimension of the
attribute
int valueint getMaxYDimension()
getMaxYDimension returns the max y-dimension of the
attribute
int valueint getXDimension()
getXDimension returns the actual x-dimension of the
attribute.
int valueint getYDimension()
getYDimension returns the actual y-dimension of the
attribute
int valueint getHeight()
getHeight alias for getYDimension()
int valueint getWidth()
getWidth alias for getXDimension()
int valueboolean hasEvents()
hasEvents returns true if the attribute is refreshed by event system
void setSkippingRefresh(boolean b)
boolean isSkippingRefresh()
void dispatch(fr.esrf.TangoApi.DeviceAttribute attValue)
attValue - Attribute valuevoid dispatchError(fr.esrf.Tango.DevFailed e)
e - Attribute arrorboolean areAttPropertiesLoaded()
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
void loadAttProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||