ConnectToAccessPoint

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

Linking rule that connects nodes within a specified radius but filters connections through a designated access point when the center is not an AP itself.

Parameters

radius

the maximum connection radius

Type Parameters

T

the concentration type

P

the position type

Constructors

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

Properties

Link copied to clipboard

the molecule id used to mark access-point nodes

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
infix fun LinkingRule<*, *>.shouldEqual(other: LinkingRule<*, *>)