Class FloatOption

    • Field Detail

      • currentVal

        protected double currentVal
      • defaultVal

        protected double defaultVal
      • minVal

        protected double minVal
      • maxVal

        protected double maxVal
    • Constructor Detail

      • FloatOption

        public FloatOption​(String name,
                           char cliChar,
                           String purpose,
                           double defaultVal)
      • FloatOption

        public FloatOption​(String name,
                           char cliChar,
                           String purpose,
                           double defaultVal,
                           double minVal,
                           double maxVal)
    • Method Detail

      • setValue

        public void setValue​(double v)
      • getValue

        public double getValue()
      • getMinValue

        public double getMinValue()
      • getMaxValue

        public double getMaxValue()
      • getDefaultCLIString

        public String getDefaultCLIString()
        Description copied from interface: Option
        Gets the Command Line Interface text
        Returns:
        the Command Line Interface text
      • getValueAsCLIString

        public String getValueAsCLIString()
        Description copied from interface: Option
        Gets the value of a Command Line Interface text as a string
        Returns:
        the string with the value of the Command Line Interface text
      • setValueViaCLIString

        public void setValueViaCLIString​(String s)
        Description copied from interface: Option
        Sets value of this option via the Command Line Interface text
        Parameters:
        s - the Command Line Interface text
      • cliStringToDouble

        public static double cliStringToDouble​(String s)
      • doubleToCLIString

        public static String doubleToCLIString​(double d)