-
- All Implemented Interfaces:
public class Neighborhoods.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Neighborhoods.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P>make(Environment<T, P> env, Node<T> center, Iterable<Node<T>> neighbors)Creates a SimpleNeighborhood. final <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P>make(Environment<T, P> env, Node<T> center)Creates a SimpleNeighborhood. -
-
Method Detail
-
make
@JvmOverloads() final <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P> make(Environment<T, P> env, Node<T> center, Iterable<Node<T>> neighbors)
Creates a SimpleNeighborhood.
- Parameters:
env- The environment of the neighborhood.center- The center of the neighborhood.neighbors- The neighbors in the neighborhood, defaults to empty.
-
make
@JvmOverloads() final <T extends Any, P extends Position<P>> SimpleNeighborhood<T, P> make(Environment<T, P> env, Node<T> center)
Creates a SimpleNeighborhood.
- Parameters:
env- The environment of the neighborhood.center- The center of the neighborhood.
-
-
-
-