T
- type of agents.@FunctionalInterface
public interface BeforeStepAction<T extends Agent>
extends io.vavr.Function3<java.lang.Long,io.vavr.collection.List<T>,io.vavr.collection.List<T>,io.vavr.collection.List<T>>
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 Agent> |
simpleMerge()
Simple merge action - adds all incoming agents to the population.
|
static <T extends Agent> BeforeStepAction<T> simpleMerge()
Simple merge action - adds all incoming agents to the population.
T
- agents typedefault boolean isMemoized()