AdaptiveRange

This linking rule dynamically searches for the best radius for each device, in such a way that it connects to a certain number of devices.

Parameters

<T>

Concentration type

<P>

Inheritors

Constructors

Link copied to clipboard
constructor(radius: Double, minrange: Double, maxrange: Double, num: Int, tolerance: Int)
constructor(radius: Double, minrange: Double, maxrange: Double, num: Int, tolerance: Int, adjustment: Double)
constructor(radius: Double, minrange: Double, num: Int, tolerance: Int)
constructor(radius: Double, minrange: Double, num: Int, tolerance: Int, adjustment: Double)
constructor(radius: Double, num: Int, tolerance: Int)
constructor(radius: Double, num: Int, tolerance: Int, adjustment: Double)

Properties

Link copied to clipboard
Default adjustment.
Link copied to clipboard
Default maximum range.
Link copied to clipboard
Default minimum range.

Functions

Link copied to clipboard
abstract fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>
Produces a new neighborhood for specified node considering its position.
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.
Link copied to clipboard
open fun toString(): String