Class YaspHeaderImpl
- java.lang.Object
-
- cern.accsoft.steering.util.meas.data.yasp.YaspHeaderImpl
-
- All Implemented Interfaces:
YaspHeader
public class YaspHeaderImpl extends java.lang.Object implements YaspHeader
-
-
Constructor Summary
Constructors Constructor Description YaspHeaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(YaspHeaderData key, java.lang.String value)java.lang.DoublegetDoubleData(YaspHeaderData data)Retrieve the double value for the givenYaspHeaderDatajava.lang.LonggetLongData(YaspHeaderData data)Retrieve the long data for the givenYaspHeaderData.java.lang.StringgetStringData(YaspHeaderData data)Retrieve the string data for the givenYaspHeaderData.
-
-
-
Method Detail
-
getStringData
public java.lang.String getStringData(YaspHeaderData data)
Description copied from interface:YaspHeaderRetrieve the string data for the givenYaspHeaderData.- Specified by:
getStringDatain interfaceYaspHeader- Parameters:
data- theYaspHeaderDatato retrieve- Returns:
- the value in the current yasp reading or an empty string in case the data was not found
-
getLongData
public java.lang.Long getLongData(YaspHeaderData data)
Description copied from interface:YaspHeaderRetrieve the long data for the givenYaspHeaderData.- Specified by:
getLongDatain interfaceYaspHeader- Parameters:
data- theYaspHeaderDatato retrieve- Returns:
- the value in the current yasp reading or 0L in case the data was not found
-
getDoubleData
public java.lang.Double getDoubleData(YaspHeaderData data)
Description copied from interface:YaspHeaderRetrieve the double value for the givenYaspHeaderData- Specified by:
getDoubleDatain interfaceYaspHeader- Parameters:
data- theYaspHeaderDatato retrieve- Returns:
- the double value in the current yasp reading or
Double.NaNin case the data was not found
-
addEntry
public void addEntry(YaspHeaderData key, java.lang.String value)
-
-