Class DoubleArrayListParameter

  • All Implemented Interfaces:
    Parameter<java.util.List<double[]>>

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

      • DoubleArrayListParameter

        public DoubleArrayListParameter​(OptionID optionID,
                                        ParameterConstraint<java.util.List<double[]>> constraint,
                                        java.util.List<double[]> defaultValue)
        Constructs a vector list parameter with the given name and description.
        Parameters:
        optionID - Option ID
        constraint - Constraint
        defaultValue - Default value
      • DoubleArrayListParameter

        public DoubleArrayListParameter​(OptionID optionID,
                                        ParameterConstraint<java.util.List<double[]>> constraint)
        Constructs a vector list parameter with the given name and description.
        Parameters:
        optionID - Option ID
        constraint - Constraint
      • DoubleArrayListParameter

        public DoubleArrayListParameter​(OptionID optionID,
                                        java.util.List<double[]> defaultValue)
        Constructs a vector list parameter with the given name and description.
        Parameters:
        optionID - Option ID
        defaultValue - Default value
      • DoubleArrayListParameter

        public DoubleArrayListParameter​(OptionID optionID)
        Constructs a vector list parameter with the given name and description.
        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:
        Syntax string
      • grab

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