SelectiveAdaptiveRange

open class SelectiveAdaptiveRange<T, P : Position<P>> @JvmOverloads constructor(environment: Environment<T, P>, radius: Double, desiredNeighborsCount: Int, tolerance: Int, minRange: Double = DEFAULT_MINRANGE, maxRange: Double = DEFAULT_MAXRANGE, adjustment: Double = DEFAULT_ADJUSTMENT, molType: String = DEFAULT_MOLECULETYPE) : AdaptiveRange<T, P> (source)

An AdaptiveRange that links only the nodes carrying an LSA molecule of the given type.

Parameters

environment

the environment whose nodes this model links

radius

the initial range of every node

desiredNeighborsCount

the preferred number of neighbors

tolerance

if the number of neighbors is smaller than desiredNeighborsCount - tolerance, the range is increased; if it is higher than desiredNeighborsCount + tolerance, it is decreased

minRange

the minimum range

maxRange

the maximum range

adjustment

the amount the range is changed by when out of tolerance

molType

the molecule whose presence allows links to be created

Type Parameters

T

concentration type

P

position type

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>, radius: Double, desiredNeighborsCount: Int, tolerance: Int, minRange: Double = DEFAULT_MINRANGE, maxRange: Double = DEFAULT_MAXRANGE, adjustment: Double = DEFAULT_ADJUSTMENT, molType: String = DEFAULT_MOLECULETYPE)

Types

Link copied to clipboard
object Companion

Default parameters.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
override fun neighborhoodOf(center: Node<T>): Observable<Neighborhood<T>>
Link copied to clipboard
override fun toString(): String