Interface EndpointWeightTransition

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface EndpointWeightTransition
Computes the weight of the given Endpoint using the given currentStep and totalSteps.
  • Method Summary

    Modifier and Type Method Description
    int compute​(Endpoint endpoint, int currentStep, int totalSteps)
    Returns the computed weight of the given Endpoint using the given currentStep and totalSteps.
    static EndpointWeightTransition linear()
    Returns the EndpointWeightTransition which returns the gradually increased weight as the current step increases.
  • Method Details

    • linear

      static EndpointWeightTransition linear()
      Returns the EndpointWeightTransition which returns the gradually increased weight as the current step increases.
    • compute

      int compute​(Endpoint endpoint, int currentStep, int totalSteps)
      Returns the computed weight of the given Endpoint using the given currentStep and totalSteps.