Class 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.
    • Constructor Detail

      • FloatingDecimalProcessVariable

        public FloatingDecimalProcessVariable​(String name,
                                              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​(DBR value)
        Set data (units, limits, ...) and precision to DBR.
        Overrides:
        fillInDBR in class NumericProcessVariable
        Parameters:
        value - DBR to fill-in.