Interface IslandEvolutionObserver<T>

  • Type Parameters:
    T - The type of entity being evolved.
    All Superinterfaces:
    EvolutionObserver<T>
    All Known Implementing Classes:
    EvolutionMonitor, StatusBar

    public interface IslandEvolutionObserver<T>
    extends EvolutionObserver<T>
    A specialisation of EvolutionObserver that, as well as receiving global population updates (at the end of each epoch), can receive individual island population updates (at the end of each generation on each island).
    • Method Detail

      • islandPopulationUpdate

        void islandPopulationUpdate​(int islandIndex,
                                    PopulationData<? extends T> data)
        Method called to notify the listener of the state of the population of an individual island. This will be called once for each generation on each island.
        Parameters:
        islandIndex - Identifies which individual island the data comes from. Indices start at zero and are sequential.
        data - The latest data from the evolution on the specified island.