Class FeatureFromList<T extends FeatureInput>

Type Parameters:
T - feature input-type of all features in the list, as well as the returned result.
Direct Known Subclasses:
Sum

public abstract class FeatureFromList<T extends FeatureInput>
extends Feature<T>
A base class for a Feature that is a function of the results from a list of other features.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • descriptionForList

      protected String descriptionForList​(String join)
      Derive a string description of all the items of the list concatenated together.

      Each feature's individual description is separated from the next by joinCharacter.

      Parameters:
      join - the character to separate items in the list.
      Returns:
      the description, as above.
    • setList

      public void setList​(List<Feature<T>> list)
      Assigns the list of features to use.
      Parameters:
      list - the list to assign.
    • setList

      public void setList​(FeatureList<T> list)
      Assigns the list of features to use.
      Parameters:
      list - the list to assign.
    • inputType

      public Class<? extends FeatureInput> inputType()
      Description copied from class: Feature
      The class corresponding to feature input-type.

      i.e. corresponding to the T template parameter.

      Specified by:
      inputType in class Feature<T extends FeatureInput>
      Returns:
      the class.
    • getList

      public List<Feature<T>> getList()
      The features whose results will be somehow combined, to form the result of this class.