com.cosylab.epics.caj.cas.util
Class FloatingDecimalProcessVariable

java.lang.Object
  extended by gov.aps.jca.cas.ProcessVariable
      extended by com.cosylab.epics.caj.cas.util.NumericProcessVariable
          extended by com.cosylab.epics.caj.cas.util.FloatingDecimalProcessVariable

public abstract class FloatingDecimalProcessVariable
extends NumericProcessVariable

Abstract convenient floating decimal process variable implementation. This implementation specializes NumericProcessVariable - 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
FloatingDecimalProcessVariable(String name, gov.aps.jca.cas.ProcessVariableEventCallback eventCallback)
          Floating decimal PV constructor.
 
Method Summary
 void fillInDBR(gov.aps.jca.dbr.DBR value)
          Set data (units, limits, ...) and precision to DBR.
abstract  short getPrecision()
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatingDecimalProcessVariable

public FloatingDecimalProcessVariable(String name,
                                      gov.aps.jca.cas.ProcessVariableEventCallback eventCallback)
Floating decimal PV constructor.

Parameters:
name - process variable name.
eventCallback - event callback, can be null.
Method Detail

getPrecision

public abstract short getPrecision()
Get precision (number of digits after decimal point). Use -1 value as undefined precision.

Returns:
precision.

fillInDBR

public void fillInDBR(gov.aps.jca.dbr.DBR value)
Set data (units, limits, ...) and precision to DBR.

Overrides:
fillInDBR in class NumericProcessVariable
Parameters:
value - DBR to fill-in.


Copyright © 2004-2013 Cosylab. All Rights Reserved.