@FunctionalInterface public interface Fight extends java.util.function.Function<io.vavr.Tuple2<EmasAgent,EmasAgent>,io.vavr.collection.Seq<EmasAgent>>
Fight is the function generating a list of new agents from the fighting tuple of a two. The returned agent list will replace source agents in the population.
Modifier and Type | Method and Description |
---|---|
static <S extends Solution<?>> |
builder()
Creates a new builder for fight strategy.
|
static <S extends Solution<?>> FightBuilder<S> builder()
Creates a new builder for fight strategy.
S
- Solution type