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 numberSteps.
  • Method Summary

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