Class DoubleListParameter

  • All Implemented Interfaces:
    Parameter<double[]>

    public class DoubleListParameter
    extends ListParameter<DoubleListParameter,​double[]>
    Parameter class for a parameter specifying a list of double values.
    Since:
    0.1
    Author:
    Steffi Wanka, Erich Schubert
    • Constructor Detail

      • DoubleListParameter

        public DoubleListParameter​(OptionID optionID)
        Constructs a list parameter with the given optionID.
        Parameters:
        optionID - Option ID
    • Method Detail

      • getValueAsString

        public java.lang.String getValueAsString()
        Description copied from interface: Parameter
        Get the value as string. May return null
        Returns:
        Value as string
      • getSyntax

        public java.lang.String getSyntax()
        Returns a string representation of the parameter's type.
        Returns:
        "<double_1,...,double_n>"
      • grab

        public boolean grab​(Parameterization config,
                            java.util.function.Consumer<double[]> consumer)
        Get the parameter.
        Parameters:
        config - Parameterization
        consumer - Output consumer
        Returns:
        true if valid;