code: private void set(double value)
      {
          cur = value;
          if (!overMax && cur > max)
          {
              cur = max;
          }
          if (cur < Alterable.MIN)
          {
              cur = Alterable.MIN;
          }
      }
docs: Set current value. The current value will be fixed between 0 and the maximum.
  
  @param value The current value.