Class AbstractParameter<T>

java.lang.Object
org.moeaframework.analysis.parameter.AbstractParameter<T>
Type Parameters:
T - the type of the parameter
All Implemented Interfaces:
Parameter<T>, Named
Direct Known Subclasses:
Constant, Enumeration, SampledDouble, SampledInteger, SampledLong

public abstract class AbstractParameter<T> extends Object implements Parameter<T>
Abstract parameter implementation.
  • Constructor Details

    • AbstractParameter

      public AbstractParameter(String name)
      Constructs a new parameter with the given name.
      Parameters:
      name - the parameter name
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Named
      Returns the name of this object. The format for the name depends on the specific implementation, but in general we recommend:
      1. Prefer using alphanumeric characters including '_' and '-'.
      2. Avoid whitespace and other control characters.
      3. null can be returned, if allowed by the implementation, to indicate the object is anonymous or has no assigned name.
      Specified by:
      getName in interface Named
      Returns:
      the name
    • toString

      public String toString()
      Overrides:
      toString in class Object