fr.esrf.tangoatk.core.attribute
Class NumberSpectrum

java.lang.Object
  extended by fr.esrf.tangoatk.core.attribute.AAttribute
      extended by fr.esrf.tangoatk.core.attribute.ANumber
          extended by fr.esrf.tangoatk.core.attribute.NumberSpectrum
All Implemented Interfaces:
fr.esrf.TangoApi.events.ITangoChangeListener, fr.esrf.TangoApi.events.ITangoPeriodicListener, IAttribute, IEntity, INumber, INumberSpectrum, IRefreshee, fr.esrf.TangoDs.TangoConst, java.io.Serializable, java.util.EventListener

public class NumberSpectrum
extends ANumber
implements INumberSpectrum

See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.esrf.tangoatk.core.attribute.AAttribute
alias, attPropertiesLoaded, attribute, changeCount, config, device, error, eventError, name, nameSansDevice, periodicCount, propChanges, propertyStorage, refreshCount, skippingRefresh, state, timer, timeStamp
 
Fields inherited from interface fr.esrf.tangoatk.core.INumberSpectrum
XMAX_ATT_PROP, XMAX_PROP, XMIN_ATT_PROP, XMIN_PROP
 
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
NumberSpectrum()
           
 
Method Summary
 void addSpectrumListener(ISpectrumListener l)
           
 void change(fr.esrf.TangoApi.events.TangoChangeEvent evt)
           
protected  void checkDimensions(double[] o)
           
 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)
 void freeInternalData()
           
 double getMaxx()
           
 java.lang.String getMaxxAttName()
           
 int getMaxYDimension()
          getMaxYDimension returns the max y-dimension of the attribute
 double getMinx()
           
 java.lang.String getMinxAttName()
           
 fr.esrf.tangoatk.core.attribute.ANumberSpectrumHelper getNumberSpectrumHelper()
           
 double[] getSpectrumValue()
           
 double[][] getValue()
           
 java.lang.String getVersion()
           
 int getYDimension()
          getYDimension returns the actual y-dimension of the attribute
 boolean hasMinxMaxxAttributes()
           
 boolean hasMinxMaxxProperties()
           
protected  void insert(double[] d)
           
 void loadAttProperties()
          Method used by some attribute viewers to force the reading of some specific at setModel().
 void periodic(fr.esrf.TangoApi.events.TangoPeriodicEvent evt)
           
 void refresh()
          refreshes the listeners of this particular object.
 void removeSpectrumListener(ISpectrumListener l)
           
 void setValue(double[] d)
           
 void setValue(double[][] d)
           
 
Methods inherited from class fr.esrf.tangoatk.core.attribute.ANumber
getDeltaT, getDeltaVal, getMaxAlarm, getMaxValue, getMaxWarning, getMinAlarm, getMinValue, getMinWarning, getNumberHelper, getValueInDeviceUnit, getValueInDisplayUnit, setConfiguration, setDeltaT, setDeltaT, setDeltaVal, setDeltaVal, setMaxAlarm, setMaxAlarm, setMaxValue, setMaxValue, setMaxWarning, setMaxWarning, setMinAlarm, setMinAlarm, setMinValue, setMinValue, setMinWarning, setMinWarning, setNumberHelper
 
Methods inherited from class fr.esrf.tangoatk.core.attribute.AAttribute
addErrorListener, addSetErrorListener, addStateListener, areAttPropertiesLoaded, checkDimensions, checkDimensions, checkDimensions, flatten, getAlias, getAttribute, getChangeCount, getDescription, getDevice, getDeviceAttribute, getDisplayUnit, getDisplayUnitFactor, getFormat, getHeight, getLabel, getLevel, getListenerList, getMaxXDimension, getName, getNameSansDevice, getPeriodicCount, getPropChanges, getProperty, getPropertyMap, getPropertyNames, getPropertyStorage, getRefreshCount, getStandardUnit, getStandardUnitFactor, getState, getSubscriptionError, getTangoDataFormat, getTangoDataType, getType, getUnit, getWidth, getXDimension, hasEvents, init, isExpert, isOperator, isSkippingRefresh, isWritable, readAttError, readAttHistoryFromNetwork, readDeviceValueFromNetwork, readValueFromNetwork, removeErrorListener, removeSetErrorListener, removeStateListener, serializeInit, setAlias, setAttError, setDescription, setDevice, setLabel, setName, setProperty, setProperty, setPropertyStorage, setSkippingRefresh, setState, setState, setState, storeConfig, toString, 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.INumber
getDeltaT, getDeltaVal, getMaxAlarm, getMaxValue, getMaxWarning, getMinAlarm, getMinValue, getMinWarning, setDeltaT, setDeltaVal, setMaxAlarm, setMaxValue, setMaxWarning, setMinAlarm, setMinValue, setMinWarning
 
Methods inherited from interface fr.esrf.tangoatk.core.IAttribute
addSetErrorListener, addStateListener, areAttPropertiesLoaded, getAttribute, getDescription, getDisplayUnit, getDisplayUnitFactor, getFormat, getHeight, getLabel, getMaxXDimension, getStandardUnit, getStandardUnitFactor, getState, getTangoDataFormat, getTangoDataType, getType, getUnit, getWidth, getXDimension, hasEvents, isSkippingRefresh, isWritable, removeSetErrorListener, removeStateListener, setDescription, setLabel, setName, setProperty, setProperty, setSkippingRefresh
 
Methods inherited from interface fr.esrf.tangoatk.core.IEntity
addErrorListener, getAlias, getDevice, getListenerList, getName, getNameSansDevice, getProperty, getPropertyMap, isExpert, isOperator, removeErrorListener, setAlias, storeConfig
 

Constructor Detail

NumberSpectrum

public NumberSpectrum()
Method Detail

getNumberSpectrumHelper

public fr.esrf.tangoatk.core.attribute.ANumberSpectrumHelper getNumberSpectrumHelper()

addSpectrumListener

public void addSpectrumListener(ISpectrumListener l)
Specified by:
addSpectrumListener in interface INumberSpectrum

removeSpectrumListener

public void removeSpectrumListener(ISpectrumListener l)
Specified by:
removeSpectrumListener in interface INumberSpectrum

setValue

public void setValue(double[][] d)

getValue

public double[][] getValue()

setValue

public void setValue(double[] d)
Specified by:
setValue in interface INumberSpectrum

checkDimensions

protected void checkDimensions(double[] o)

insert

protected void insert(double[] d)

refresh

public void refresh()
Description copied from interface: IRefreshee
refreshes the listeners of this particular object.

Specified by:
refresh in interface IRefreshee

dispatch

public void dispatch(fr.esrf.TangoApi.DeviceAttribute attValue)
Description copied from interface: IAttribute
Method used by optimized AttributePolledList (one read per device)

Specified by:
dispatch in interface IAttribute
Parameters:
attValue - Attribute value

dispatchError

public void dispatchError(fr.esrf.Tango.DevFailed e)
Description copied from interface: IAttribute
Method used by optimized AttributePolledList (one read per device)

Specified by:
dispatchError in interface IAttribute
Parameters:
e - Attribute arror

getSpectrumValue

public double[] getSpectrumValue()
Specified by:
getSpectrumValue in interface INumberSpectrum

periodic

public void periodic(fr.esrf.TangoApi.events.TangoPeriodicEvent evt)
Specified by:
periodic in interface fr.esrf.TangoApi.events.ITangoPeriodicListener

change

public void change(fr.esrf.TangoApi.events.TangoChangeEvent evt)
Specified by:
change in interface fr.esrf.TangoApi.events.ITangoChangeListener

freeInternalData

public void freeInternalData()
Overrides:
freeInternalData in class AAttribute

getVersion

public java.lang.String getVersion()
Overrides:
getVersion in class AAttribute

getYDimension

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

Specified by:
getYDimension in interface IAttribute
Overrides:
getYDimension in class AAttribute
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
Overrides:
getMaxYDimension in class AAttribute
Returns:
an int value

hasMinxMaxxAttributes

public boolean hasMinxMaxxAttributes()
Specified by:
hasMinxMaxxAttributes in interface INumberSpectrum

hasMinxMaxxProperties

public boolean hasMinxMaxxProperties()
Specified by:
hasMinxMaxxProperties in interface INumberSpectrum

getMinxAttName

public java.lang.String getMinxAttName()
Specified by:
getMinxAttName in interface INumberSpectrum

getMaxxAttName

public java.lang.String getMaxxAttName()
Specified by:
getMaxxAttName in interface INumberSpectrum

getMinx

public double getMinx()
Specified by:
getMinx in interface INumberSpectrum

getMaxx

public double getMaxx()
Specified by:
getMaxx in interface INumberSpectrum

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
Overrides:
loadAttProperties in class AAttribute