Package com.cosylab.epics.caj.cas.util
Class FloatingDecimalProcessVariable
- java.lang.Object
-
- gov.aps.jca.cas.ProcessVariable
-
- com.cosylab.epics.caj.cas.util.NumericProcessVariable
-
- com.cosylab.epics.caj.cas.util.FloatingDecimalProcessVariable
-
public abstract class FloatingDecimalProcessVariable extends NumericProcessVariable
Abstract convenient floating decimal process variable implementation. This implementation specializesNumericProcessVariable- adds precision support. Implementation does not handle status, severity and alarms.
-
-
Field Summary
-
Fields inherited from class gov.aps.jca.cas.ProcessVariable
ackS, ackT, channelCount, eventCallback, interest, name
-
-
Constructor Summary
Constructors Constructor Description FloatingDecimalProcessVariable(String name, ProcessVariableEventCallback eventCallback)Floating decimal PV constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidfillInDBR(DBR value)Set data (units, limits, ...) and precision to DBR.abstract shortgetPrecision()Get precision (number of digits after decimal point).-
Methods inherited from class com.cosylab.epics.caj.cas.util.NumericProcessVariable
getLowerAlarmLimit, getLowerCtrlLimit, getLowerDispLimit, getLowerWarningLimit, getUnits, getUpperAlarmLimit, getUpperCtrlLimit, getUpperDispLimit, getUpperWarningLimit, read, readValue, write, writeValue
-
Methods inherited from class gov.aps.jca.cas.ProcessVariable
createChannel, destroy, getAckS, getDimensionSize, getEnumLabels, getEventCallback, getMaxDimension, getName, getType, interestDelete, interestRegister, isAckT, printInfo, printInfo, registerChannel, setAckS, setAckT, setEventCallback, unregisterChannel
-
-
-
-
Constructor Detail
-
FloatingDecimalProcessVariable
public FloatingDecimalProcessVariable(String name, ProcessVariableEventCallback eventCallback)
Floating decimal PV constructor.- Parameters:
name- process variable name.eventCallback- event callback, can benull.
-
-
Method Detail
-
getPrecision
public abstract short getPrecision()
Get precision (number of digits after decimal point). Use-1value as undefined precision.- Returns:
- precision.
-
fillInDBR
public void fillInDBR(DBR value)
Set data (units, limits, ...) and precision to DBR.- Overrides:
fillInDBRin classNumericProcessVariable- Parameters:
value- DBR to fill-in.
-
-