SimpleNeighborhood

A basic implementation of the Neighborhood interface.

Properties

Link copied to clipboard
open override val center: Node<T>
Link copied to clipboard
open override val isEmpty: ERROR CLASS: Unresolved name: isEmpty
Link copied to clipboard
open override val neighbors: ERROR CLASS: Symbol not found for ListSet<out it/unibo/alchemist/model/Node<T>>

Functions

Link copied to clipboard
open override fun add(node: Node<T>): ERROR CLASS: Ambiguity: SimpleNeighborhood, [it/unibo/alchemist/model/neighborhoods/SimpleNeighborhood.SimpleNeighborhood, it/unibo/alchemist/model/neighborhoods/SimpleNeighborhood.SimpleNeighborhood]
Link copied to clipboard
open operator override fun contains(node: Node<T>?): ERROR CLASS: Unresolved name: contains

Verifies if a node is contained inside a neighborhood.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getCenter(): Node<T>

Allows accessing the central node.

Link copied to clipboard
open override fun getNeighbors(): ERROR CLASS: Symbol not found for ListSet<out it/unibo/alchemist/model/Node<T>>

Allows directly accessing every node in the neighborhood. A change of this List will be reflected in the neighborhood.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): ERROR CLASS: Unresolved name: isEmpty
Link copied to clipboard
open operator override fun iterator(): ERROR CLASS: Unresolved name: iterator
Link copied to clipboard
open override fun remove(node: Node<T>): Neighborhood<T>
Link copied to clipboard
open override fun size(): ERROR CLASS: Unresolved name: size
Link copied to clipboard
open override fun toString(): String