S
- type of a solution.@FunctionalInterface
public interface BeforeStepAction<S extends Solution<?>>
extends io.vavr.Function2<java.lang.Long,io.vavr.collection.List<S>,io.vavr.collection.List<S>>
Interface for functions executed before the step execution in a workplace.
The parameters of the function are: - step number (as Long), - current population (as List
), - incoming population - from migrations (as List
),
The function should return the population to process in the current step.
Modifier and Type | Interface and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Method and Description |
---|---|
default boolean |
isMemoized() |
static <T extends Solution<?>> |
simplePassthrough()
Simple passthrough action – just passes the population.
|
static <T extends Solution<?>> BeforeStepAction<T> simplePassthrough()
Simple passthrough action – just passes the population.
T
- agents typedefault boolean isMemoized()