Interface EnumeratedParameter<T>

Type Parameters:
T - the type of the parameter
All Superinterfaces:
Named, Parameter<T>, SampledParameter<T>
All Known Implementing Classes:
Enumeration

public interface EnumeratedParameter<T> extends Parameter<T>, SampledParameter<T>
Interface for enumerated parameters that can either enumerate all possible values or produce a sampling.
  • Method Summary

    Modifier and Type
    Method
    Description
    enumerate(List<Sample> samples)
    Enumerates the parameters by creating a "cross join" with the existing samples.
    Returns all possible values produced by this enumeration.

    Methods inherited from interface org.moeaframework.core.Named

    getName

    Methods inherited from interface org.moeaframework.analysis.parameter.Parameter

    assignValue, encode, parse, readValue

    Methods inherited from interface org.moeaframework.analysis.parameter.SampledParameter

    sample
  • Method Details

    • values

      List<T> values()
      Returns all possible values produced by this enumeration.
      Returns:
      the values
    • enumerate

      List<Sample> enumerate(List<Sample> samples)
      Enumerates the parameters by creating a "cross join" with the existing samples. If given N samples as input, the result will contain N * values().size() samples.
      Parameters:
      samples - the input samples
      Returns:
      the enumerated samples including this parameter