Interface PastureListener<Breed>

Type Parameters:
Breed -

public interface PastureListener<Breed>
`cleanup` and `assign` divided by global sync barrier None `assign` will be called until all `cleanup` finished
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assigned(List<Breed> population, AssignmentData populationAssignment)
    Invoked when new subpopulation assigned to this pasture
    default void
    Invoked on first phase of rebalance
  • Method Details

    • assigned

      void assigned(List<Breed> population, AssignmentData populationAssignment)
      Invoked when new subpopulation assigned to this pasture
    • cleanup

      default void cleanup()
      Invoked on first phase of rebalance