Class FeatureListEvaluator<T extends FeatureInput>

Type Parameters:
T - feature input-type

public class FeatureListEvaluator<T extends FeatureInput> extends FeatureRelatedBean<FeatureListEvaluator<T>>
Defines a list of features and provides a means to calculate inputs for it, a session.
Author:
Owen Feehan
  • Constructor Details

    • FeatureListEvaluator

      public FeatureListEvaluator()
  • Method Details

    • createFeatureSession

      public NamedFeatureCalculatorMulti<T> createFeatureSession(UnaryOperator<FeatureList<T>> addFeatures, SharedObjects sharedObjects) throws OperationFailedException
      Creates session for evaluating features.
      Parameters:
      addFeatures - a function to potentially add additional features to the list
      sharedObjects - shared objects to be used in feature initialization
      Returns:
      the calculator for a newly created session
      Throws:
      OperationFailedException - if the session creation fails
    • getFeatures

      public List<FeatureProvider<T>> getFeatures()
      A list of providers, combined together to form a list of features, to be calculated in a session.
    • setFeatures

      public void setFeatures(List<FeatureProvider<T>> features)
      A list of providers, combined together to form a list of features, to be calculated in a session.