ConnectViaAccessPoint

class ConnectViaAccessPoint<T, P : Position<P>>(radius: Double, val accessPointId: Molecule) : ConnectWithinDistance<T, P>

Parameters

accessPointId

the id of the access point.

Constructors

Link copied to clipboard
constructor(radius: Double, accessPointId: Molecule)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>

Subclasses may change the way a neighborhood is computed.

Link copied to clipboard

Some rules may require to be evaluated against multiple nodes until the situations gets consistent. For instance, a rule that connects the closest 10 nodes must be evaluated multiple times to get to the correct result (this is because a change in one neighbor may require a disconnection from another node to maintain exactly 10 connections). Most rules do not need such machinery (e.g., connecting to nodes within some statically defined range).

Link copied to clipboard
open override fun toString(): String