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"


Variable Index

 o LOCAL
 
 o REMOTE
 
 o TYPE_STRING
 
 o TYPE_VALUE
 

Constructor Index

 o Tag()
 
 o Tag(String)
 

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
 
 o clearAcquisitionError()
 
 o doubleValue()
 
 o getAcquisitionError()
 
 o getDataServer()
 
 o getDate()
 
 o getDateAsString()
 
 o getHigherLimit()
 
 o getIncrement()
 
 o getLimits()
 
 o getLowerLimit()
 
 o getMaximum()
 
 o getMinimum()
 
 o getProcessName()
 
 o getProperty(String)
Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus, Value, TagName, type, Validity, date
 o getRemoteStatus()
 
 o getTagHistory()
 
 o getTagName()
 
 o getType()
 
 o getUnit()
 
 o getValidity()
 
 o init()
 
 o intValue()
 
 o isRemote()
 
 o isValid()
 
 o removePropertyChangeListener(PropertyChangeListener)
 
 o setAcquisitionError()
 
 o setAcquisitionError(boolean)
 
 o setConfig(String)
The configuration is a string formated on the following pattern: "name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"
 o setDataServer(DataServer)
 
 o setDate(String)
 
 o setHigherLimit(double)
 
 o setIncrement(double)
 
 o setInvalidValue()
 
 o setInvalidValue(long)
 
 o setLimits(double, double)
 
 o setLimits(double, double, double, double)
 
 o setLimits(double, double, double, double, boolean)
 
 o setLocal()
 
 o setLowerLimit(double)
 
 o setMaximum(double)
 
 o setMinimum(double)
 
 o setProcessName(String)
 
 o setProperty(String, String)
Property may be one of the following:
ProcessName, Increment, Unit, minimum, maximum, higherLimit,lowerLimit, remoteStatus, Value, TagName, type, Validity, date
 o setRemote()
 
 o setRemoteStatus(boolean)
 
 o setTagName(String)
It also empties the trend
 o setType(int)
 
 o setUnit(String)
 
 o setValidity(boolean)
 
 o setValue(String)
 
 o setValue(String, long)
 
 o stringValue()
 
 o toString()
The configuration is a string formated on the following pattern: "name;value;min;max;lowerLimit;higherLimit;isLimited;validity;processName;remoteStatus;increment;unit"

Variables

 o TYPE_VALUE

 public static final int TYPE_VALUE

 o TYPE_STRING

 public static final int TYPE_STRING

 o REMOTE

 public static final boolean REMOTE

 o LOCAL

 public static final boolean LOCAL

Constructors

 o Tag

 public Tag()

 o Tag

 public Tag(String name)

Methods

 o init

 public void init()

 o setDataServer

 public void setDataServer(DataServer ta)

 o getDataServer

 public DataServer getDataServer()

 o setProcessName

 public void setProcessName(String ProcessName)

 o getProcessName

 public String getProcessName()

 o setIncrement

 public void setIncrement(double Increment)

 o getIncrement

 public double getIncrement()

 o setUnit

 public void setUnit(String Unit)

 o getUnit

 public String getUnit()

 o setLimits

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

 o setLimits

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

 o setLimits

 public void setLimits(double minimum,
                       double maximum)

 o getLimits

 public double[] getLimits()

 o setLocal

 public void setLocal()

 o setRemote

 public void setRemote()

 o setRemoteStatus

 public void setRemoteStatus(boolean status)

 o getRemoteStatus

 public boolean getRemoteStatus()

 o isRemote

 public boolean isRemote()

 o stringValue

 public String stringValue()

 o doubleValue

 public double doubleValue()

 o intValue

 public int intValue()

 o getAcquisitionError

 public boolean getAcquisitionError()

 o getDateAsString

 public String getDateAsString()

 o getDate

 public long getDate()

 o setTagName

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

 o setType

 public void setType(int Type)

 o getType

 public int getType()

 o setAcquisitionError

 public void setAcquisitionError()

 o setAcquisitionError

 public void setAcquisitionError(boolean acError)

 o clearAcquisitionError

 public void clearAcquisitionError()

 o getTagName

 public String getTagName()

 o 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

 o 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"

 o setInvalidValue

 public void setInvalidValue()

 o setInvalidValue

 public void setInvalidValue(long tagDate)

 o setValue

 public void setValue(String stringValue)

 o setValue

 public void setValue(String stringValue,
                      long tagDate)

 o isValid

 public boolean isValid()

 o getTagHistory

 public tagHistory getTagHistory()

 o 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

 o 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

 o setValidity

 public void setValidity(boolean validflag)

 o getValidity

 public boolean getValidity()

 o setMinimum

 public void setMinimum(double min)

 o getMinimum

 public double getMinimum()

 o setMaximum

 public void setMaximum(double max)

 o getMaximum

 public double getMaximum()

 o setLowerLimit

 public void setLowerLimit(double low)

 o getLowerLimit

 public double getLowerLimit()

 o setHigherLimit

 public void setHigherLimit(double high)

 o getHigherLimit

 public double getHigherLimit()

 o setDate

 public void setDate(String stringDate)

 o addPropertyChangeListener

 public void addPropertyChangeListener(PropertyChangeListener listener)

 o removePropertyChangeListener

 public void removePropertyChangeListener(PropertyChangeListener listener)