Class DVar


  • public class DVar
    extends Object
    Variable with double mutable value in a controller application.
    Author:
    Herbert Praehofer
    • Field Detail

      • value

        private double value
        Field for the mutable value of the variable.
    • Constructor Detail

      • DVar

        public DVar​(double initial)
        Constructor initializing the variable value.
        Parameters:
        initial - the initial value
    • Method Detail

      • get

        public double get()
        Gets the variable value.
        Returns:
        the variable value
      • set

        public void set​(double value)
        Sets the variable value.
        Parameters:
        value - the new value