Class cern.lhcias.csgui.rtdb.TagContainer

java.lang.Object
   |
   +----cern.lhcias.csgui.rtdb.TagContainer

public class TagContainer
extends Object
implements Runnable,  TagArrays


TagContainer is an implementation of TagArrays.
The Tags are stored in a Vector.
TagContainer knows how to handle TagNames with embedded properties such as Name.lowerLimit .
It fires AlarmEvents when a Tag is updated with a value which is outside the limits.

See Also:
TagArrays

Constructor Index

 o TagContainer()
 

Method Index

 o AcquisitionError()
 
 o addAlarmListener(AlarmListener)
 
 o addConfig(String)
 
 o addTag(String)
 
 o addTagChangeListener(TagChangeListener)
 
 o addTagWithoutEvent(String)
 
 o afterRefreshData()
Must be used by DataServers after updating the values of a set of Tags.
 o beforeRefreshData()
Must be used by DataServers before updating the values of a set of Tags.
 o cleanDataBase(Vector)
 
 o clear()
 
 o deleteTag(String)
 
 o getDefinitionDate()
 
 o getMaxHistoricalLength()
 
 o getNamesOfTagsOnError()
 
 o getNumberOfRemoteTags()
 
 o getNumberOfRemoteTags(DataServer)
 
 o getNumberOfTags()
 
 o getRemoteTagNames()
 
 o getRemoteTagNames(DataServer)
 
 o getRemoteTags(DataServer)
 
 o getTag(String)
 
 o getTagNames()
 
 o getTags()
 
 o init(String)
 
 o onRefreshError(String)
Used by DataServers when there is an error while retrieving the values of a set of Tags.
 o removeAlarmListener(AlarmListener)
 
 o removeTagChangeListener(TagChangeListener)
 
 o run()
 
 o setAllAcquisitionError()
 
 o setDataServerInTags(String)
Looks into all the Tags for the specified ProcessName.
 o setDataServerManager(DataServerManager)
 
 o setDataServerofTag(String, String)
Set the processName and the DataServer of a Tag
 o setTagProperty(String, String)
 
 o setValue(String, String)
 
 o setValue(String, String, long)
 
 o tagExist(String)
 
 o toString()
 
 o updateInvalidValue(String)
 
 o updateInvalidValue(String, long)
 
 o updateValue(String, String)
 
 o updateValue(String, String, long)
 

Constructors

 o TagContainer

 public TagContainer()

Methods

 o addTagChangeListener

 public synchronized void addTagChangeListener(TagChangeListener listener)

 o removeTagChangeListener

 public synchronized void removeTagChangeListener(TagChangeListener listener)

 o run

 public void run()

 o addAlarmListener

 public synchronized void addAlarmListener(AlarmListener listener)

 o removeAlarmListener

 public synchronized void removeAlarmListener(AlarmListener listener)

 o beforeRefreshData

 public boolean beforeRefreshData()
Must be used by DataServers before updating the values of a set of Tags.

 o onRefreshError

 public boolean onRefreshError(String ErrorMsg)
Used by DataServers when there is an error while retrieving the values of a set of Tags.

 o afterRefreshData

 public boolean afterRefreshData()
Must be used by DataServers after updating the values of a set of Tags.

 o setDataServerManager

 public void setDataServerManager(DataServerManager t)

 o setValue

 public void setValue(String name,
                      String value)

 o setValue

 public void setValue(String name,
                      String value,
                      long date)

 o setTagProperty

 public void setTagProperty(String Name,
                            String value)

 o updateValue

 public void updateValue(String name,
                         String value)

 o updateInvalidValue

 public void updateInvalidValue(String name)

 o updateValue

 public void updateValue(String name,
                         String value,
                         long date)

 o updateInvalidValue

 public void updateInvalidValue(String name,
                                long date)

 o addTag

 public void addTag(String name)

 o addTagWithoutEvent

 public Tag addTagWithoutEvent(String name)

 o getTagNames

 public Vector getTagNames()

 o getRemoteTagNames

 public Vector getRemoteTagNames()

 o getRemoteTagNames

 public Vector getRemoteTagNames(DataServer Ta)

 o getRemoteTags

 public Vector getRemoteTags(DataServer Ta)

 o getTags

 public Vector getTags()

 o getNumberOfRemoteTags

 public int getNumberOfRemoteTags()

 o getNumberOfRemoteTags

 public int getNumberOfRemoteTags(DataServer Ta)

 o getNumberOfTags

 public int getNumberOfTags()

 o deleteTag

 public void deleteTag(String name)

 o cleanDataBase

 public void cleanDataBase(Vector TagList)

 o clear

 public void clear()

 o getDefinitionDate

 public long getDefinitionDate()

 o tagExist

 public boolean tagExist(String name)

 o toString

 public String toString()
Overrides:
toString in class Object

 o setAllAcquisitionError

 public void setAllAcquisitionError()

 o AcquisitionError

 public boolean AcquisitionError()

 o getNamesOfTagsOnError

 public String getNamesOfTagsOnError()

 o setDataServerInTags

 public void setDataServerInTags(String ProcessName)
Looks into all the Tags for the specified ProcessName. If the Tag is to be updated from this process, then it links the Tag with the DataServer corresponding to ProcessName through the Tag.setDataServer method.

 o setDataServerofTag

 public void setDataServerofTag(String tagName,
                                String ProcessName)
Set the processName and the DataServer of a Tag

 o init

 public void init(String config)

 o addConfig

 public void addConfig(String config)

 o getTag

 public Tag getTag(String tagname)

 o getMaxHistoricalLength

 public int getMaxHistoricalLength()