Class cern.lhcias.csgui.rtdb.Tag
java.lang.Object
|
+----cern.lhcias.csgui.rtdb.Tag
- public class Tag
- extends Object
This class holds the metadata related to a tag:
name, min-max, validity limits, type, date, value, history, increment, unit,...
It sends PropertyChangeEvent whenever a tag's property (not the value) changes
The configuration used to save and restore the status of the class
is a string formated on the following pattern:
"name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"
LOCAL
-
REMOTE
-
TYPE_STRING
-
TYPE_VALUE
-
Tag()
-
Tag(String)
-
addPropertyChangeListener(PropertyChangeListener)
-
clearAcquisitionError()
-
doubleValue()
-
getAcquisitionError()
-
getDataServer()
-
getDate()
-
getDateAsString()
-
getHigherLimit()
-
getIncrement()
-
getLimits()
-
getLowerLimit()
-
getMaximum()
-
getMinimum()
-
getProcessName()
-
getProperty(String)
- Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus,
Value, TagName, type, Validity, date
getRemoteStatus()
-
getTagHistory()
-
getTagName()
-
getType()
-
getUnit()
-
getValidity()
-
init()
-
intValue()
-
isRemote()
-
isValid()
-
removePropertyChangeListener(PropertyChangeListener)
-
setAcquisitionError()
-
setAcquisitionError(boolean)
-
setConfig(String)
- The configuration is a string formated on the following pattern:
"name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"
setDataServer(DataServer)
-
setDate(String)
-
setHigherLimit(double)
-
setIncrement(double)
-
setInvalidValue()
-
setInvalidValue(long)
-
setLimits(double, double)
-
setLimits(double, double,
double, double)
-
setLimits(double,
double, double, double, boolean)
-
setLocal()
-
setLowerLimit(double)
-
setMaximum(double)
-
setMinimum(double)
-
setProcessName(String)
-
setProperty(String,
String)
- Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus,
Value, TagName, type, Validity, date
setRemote()
-
setRemoteStatus(boolean)
-
setTagName(String)
- It also empties the trend
setType(int)
-
setUnit(String)
-
setValidity(boolean)
-
setValue(String)
-
setValue(String, long)
-
stringValue()
-
toString()
- The configuration is a string formated on the following pattern:
"name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"

TYPE_VALUE
public static final int TYPE_VALUE

TYPE_STRING
public static final int TYPE_STRING

REMOTE
public static final boolean REMOTE

LOCAL
public static final boolean LOCAL

Tag
public Tag()

Tag
public Tag(String name)

init
public void init()

setDataServer
public void setDataServer(DataServer ta)

getDataServer
public DataServer getDataServer()

setProcessName
public void setProcessName(String ProcessName)

getProcessName
public String getProcessName()

setIncrement
public void setIncrement(double Increment)

getIncrement
public double getIncrement()

setUnit
public void setUnit(String Unit)

getUnit
public String getUnit()

setLimits
public void setLimits(double minimum,
double maximum,
double lowerLimit,
double higherLimit)

setLimits
public void setLimits(double minimum,
double maximum,
double lowerLimit,
double higherLimit,
boolean fl)

setLimits
public void setLimits(double minimum,
double maximum)

getLimits
public double[] getLimits()

setLocal
public void setLocal()

setRemote
public void setRemote()

setRemoteStatus
public void setRemoteStatus(boolean status)

getRemoteStatus
public boolean getRemoteStatus()

isRemote
public boolean isRemote()

stringValue
public String stringValue()

doubleValue
public double doubleValue()

intValue
public int intValue()

getAcquisitionError
public boolean getAcquisitionError()

getDateAsString
public String getDateAsString()

getDate
public long getDate()

setTagName
public void setTagName(String name)
- It also empties the trend

setType
public void setType(int Type)

getType
public int getType()

setAcquisitionError
public void setAcquisitionError()

setAcquisitionError
public void setAcquisitionError(boolean acError)

clearAcquisitionError
public void clearAcquisitionError()

getTagName
public String getTagName()

toString
public String toString()
- The configuration is a string formated on the following pattern:
"name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"
- Overrides:
- toString in class Object

setConfig
public void setConfig(String config)
- The configuration is a string formated on the following pattern:
"name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"

setInvalidValue
public void setInvalidValue()

setInvalidValue
public void setInvalidValue(long tagDate)

setValue
public void setValue(String stringValue)

setValue
public void setValue(String stringValue,
long tagDate)

isValid
public boolean isValid()

getTagHistory
public tagHistory getTagHistory()

setProperty
public void setProperty(String property,
String value)
- Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus,
Value, TagName, type, Validity, date

getProperty
public String getProperty(String property)
- Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus,
Value, TagName, type, Validity, date

setValidity
public void setValidity(boolean validflag)

getValidity
public boolean getValidity()

setMinimum
public void setMinimum(double min)

getMinimum
public double getMinimum()

setMaximum
public void setMaximum(double max)

getMaximum
public double getMaximum()

setLowerLimit
public void setLowerLimit(double low)

getLowerLimit
public double getLowerLimit()

setHigherLimit
public void setHigherLimit(double high)

getHigherLimit
public double getHigherLimit()

setDate
public void setDate(String stringDate)

addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)