fr.esrf.tangoatk.core.util
Class AttrFunctionSpectrum

java.lang.Object
  extended by fr.esrf.tangoatk.core.util.NonAttrNumberSpectrum
      extended by fr.esrf.tangoatk.core.util.AttrFunctionSpectrum
All Implemented Interfaces:
IRefreshee, INonAttrNumberSpectrum
Direct Known Subclasses:
AttrDualSpectrum, AttrVectorSpectrum

public abstract class AttrFunctionSpectrum
extends NonAttrNumberSpectrum
implements IRefreshee


Field Summary
protected  int refreshInterval
           
 
Constructor Summary
AttrFunctionSpectrum()
          Creates a new instance of AttrFunctionSpectrum
 
Method Summary
 int getRefreshInterval()
          getRefreshInterval gets the refresh-interval for the entity list.
 void refresh()
          refreshes the listeners of this particular object.
 void setRefreshInterval(int milliSeconds)
          setRefreshInterval sets the refresh interval for the EntityList.
 void startRefresher()
          startRefresher starts the default refresher thread for the entity list,which sleeps for refreshInterval seconds.
 void stopRefresher()
           
abstract  double[] updateX()
           
abstract  double[] updateY()
           
 
Methods inherited from class fr.esrf.tangoatk.core.util.NonAttrNumberSpectrum
addNonAttrSpectrumListener, fireNonAttrNumberSpectrumEvent, getXName, getXUnit, getXValue, getYName, getYUnit, getYValue, removeNonAttrSpectrumListener, setXName, setXUnit, setXYValue, setYName, setYUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refreshInterval

protected int refreshInterval
Constructor Detail

AttrFunctionSpectrum

public AttrFunctionSpectrum()
Creates a new instance of AttrFunctionSpectrum

Method Detail

updateX

public abstract double[] updateX()

updateY

public abstract double[] updateY()

refresh

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

Specified by:
refresh in interface IRefreshee

setRefreshInterval

public void setRefreshInterval(int milliSeconds)
setRefreshInterval sets the refresh interval for the EntityList. This interval decides how often an entity is polled to see if its value has changed. The default value is 1000, that is, the entity is polled once a second.

Parameters:
milliSeconds - an int value

getRefreshInterval

public int getRefreshInterval()
getRefreshInterval gets the refresh-interval for the entity list. The default value is 1000 milliseconds.

Returns:
an int value which is the refresh-interval

stopRefresher

public void stopRefresher()

startRefresher

public void startRefresher()
startRefresher starts the default refresher thread for the entity list,which sleeps for refreshInterval seconds.

See Also:
AEntityList.setRefreshInterval(int), Thread