Class IVar


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

      • value

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

      • IVar

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

      • get

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

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