Class SimpleNeighborhood
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Neighborhood
,java.io.Serializable
,kotlin.Cloneable
,kotlin.collections.Iterable
,kotlin.collections.MutableIterable
public final class SimpleNeighborhood<T extends Object, P extends Position<P>> implements Neighborhood<T>
A basic implementation of the Neighborhood interface.
-
-
Method Summary
Modifier and Type Method Description Boolean
contains(Node<T> node)
Node<T>
getCenter()
ListSet<out Node<T>>
getNeighbors()
Boolean
isEmpty()
Iterator<Node<T>>
iterator()
Integer
size()
String
toString()
Boolean
equals(Object other)
Integer
hashCode()
SimpleNeighborhood<T, P>
add(Node<T> node)
Neighborhood<T>
remove(Node<T> node)
-
-
Method Detail
-
getNeighbors
ListSet<out Node<T>> getNeighbors()
-
remove
Neighborhood<T> remove(Node<T> node)
-
-
-
-