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

TagContainer
public TagContainer()

addTagChangeListener
public synchronized void addTagChangeListener(TagChangeListener listener)

removeTagChangeListener
public synchronized void removeTagChangeListener(TagChangeListener listener)

run
public void run()

addAlarmListener
public synchronized void addAlarmListener(AlarmListener listener)

removeAlarmListener
public synchronized void removeAlarmListener(AlarmListener listener)

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

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

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

setDataServerManager
public void setDataServerManager(DataServerManager t)

setValue
public void setValue(String name,
String value)

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

setTagProperty
public void setTagProperty(String Name,
String value)

updateValue
public void updateValue(String name,
String value)

updateInvalidValue
public void updateInvalidValue(String name)

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

updateInvalidValue
public void updateInvalidValue(String name,
long date)

addTag
public void addTag(String name)

addTagWithoutEvent
public Tag addTagWithoutEvent(String name)

getTagNames
public Vector getTagNames()

getRemoteTagNames
public Vector getRemoteTagNames()

getRemoteTagNames
public Vector getRemoteTagNames(DataServer Ta)

getRemoteTags
public Vector getRemoteTags(DataServer Ta)

getTags
public Vector getTags()

getNumberOfRemoteTags
public int getNumberOfRemoteTags()

getNumberOfRemoteTags
public int getNumberOfRemoteTags(DataServer Ta)

getNumberOfTags
public int getNumberOfTags()

deleteTag
public void deleteTag(String name)

cleanDataBase
public void cleanDataBase(Vector TagList)

clear
public void clear()

getDefinitionDate
public long getDefinitionDate()

tagExist
public boolean tagExist(String name)

toString
public String toString()
- Overrides:
- toString in class Object

setAllAcquisitionError
public void setAllAcquisitionError()

AcquisitionError
public boolean AcquisitionError()

getNamesOfTagsOnError
public String getNamesOfTagsOnError()

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.

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

init
public void init(String config)

addConfig
public void addConfig(String config)

getTag
public Tag getTag(String tagname)

getMaxHistoricalLength
public int getMaxHistoricalLength()