public final class SampleAfterStepActionWithLogging extends java.lang.Object implements AfterStepAction<EmasAgent,StatisticsKeys>
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private AgentsRegistry<EmasAgent> |
registry |
private static long |
serialVersionUID |
Constructor and Description |
---|
SampleAfterStepActionWithLogging(AgentsRegistry<EmasAgent> registry) |
Modifier and Type | Method and Description |
---|---|
io.vavr.collection.Map<StatisticsKeys,java.lang.Object> |
apply(java.lang.Long workplaceId,
java.lang.Long step,
io.vavr.collection.List<EmasAgent> population) |
private static double |
computeAverageFitness(io.vavr.collection.Seq<EmasAgent> population) |
default boolean |
isMemoized() |
private static double |
sumEnergy(io.vavr.collection.Seq<EmasAgent> population) |
private static final long serialVersionUID
private final AgentsRegistry<EmasAgent> registry
@Inject public SampleAfterStepActionWithLogging(AgentsRegistry<EmasAgent> registry)
public io.vavr.collection.Map<StatisticsKeys,java.lang.Object> apply(java.lang.Long workplaceId, java.lang.Long step, io.vavr.collection.List<EmasAgent> population)
apply
in interface io.vavr.Function3<java.lang.Long,java.lang.Long,io.vavr.collection.List<EmasAgent>,io.vavr.collection.Map<StatisticsKeys,java.lang.Object>>
private static double computeAverageFitness(io.vavr.collection.Seq<EmasAgent> population)
private static double sumEnergy(io.vavr.collection.Seq<EmasAgent> population)
public boolean isMemoized()