Class Neighborhoods

  • All Implemented Interfaces:

    
    public final class Neighborhoods
    
                        

    Contains utility functions for neighborhoods.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P> make(Environment<T, P> environment, Node<T> center, Iterable<Node<T>> neighbors) Creates a SimpleNeighborhood.
      final static <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P> make(Environment<T, P> environment, Node<T> center) Creates a SimpleNeighborhood.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • make

        @JvmOverloads() final static <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P> make(Environment<T, P> environment, Node<T> center, Iterable<Node<T>> neighbors)
        Parameters:
        environment - The environment of the neighborhood.
        center - The center of the neighborhood.
        neighbors - The neighbors in the neighborhood, defaults to empty.