T
- type of agents stored in the registrypublic interface AgentsRegistry<T extends Agent>
Registry of the best agents.
Modifier and Type | Method and Description |
---|---|
static <T extends Agent> |
empty() |
java.util.OptionalDouble |
getBestAgentEvaluation()
Gets the best agent evaluation value.
|
io.vavr.collection.Map<java.lang.String,io.vavr.Tuple3<java.lang.Long,java.lang.Long,java.lang.Long>> |
getBestAgentsStatistics()
Gets the best solution map.
|
void |
register(long workplaceId,
long stepNumber,
io.vavr.collection.Seq<T> population)
Extracts and registers currently best agents from the population.
|
void register(long workplaceId, long stepNumber, io.vavr.collection.Seq<T> population)
Extracts and registers currently best agents from the population.
workplaceId
- the workplace idstepNumber
- the step numberpopulation
- the current populationjava.util.OptionalDouble getBestAgentEvaluation()
Gets the best agent evaluation value.
Optional#empty()
, if none availableio.vavr.collection.Map<java.lang.String,io.vavr.Tuple3<java.lang.Long,java.lang.Long,java.lang.Long>> getBestAgentsStatistics()
Gets the best solution map.
static <T extends Agent> AgentsRegistry<T> empty()