Connect Via Access Point
class ConnectViaAccessPoint<T, P : Position<P>>(environment: Environment<T, P>, radius: Double, accessPointId: Molecule) : AccessPointNetworkModel<T, P, ConnectViaAccessPoint.Role<T>>
Network model that connects each node to its closest access point within range, and to the other nodes within range served by the same access point; access points are connected to each other when within range. The closest access point is the nearest one, ties being broken by the lowest node id.
Parameters
environment
the environment whose nodes this model links
radius
the maximum connection radius
access Point Id
the molecule id used to mark access-point nodes
Type Parameters
T
the concentration type
P
the position type
Types
Properties
Link copied to clipboard
the molecule id used to mark access-point nodes
Link copied to clipboard
The neighborhood of this node, as provided by neighborhoodOf.
Functions
Link copied to clipboard
The neighborhood of center, a node of the environment of this model, as an observable of immutable snapshots that emits whenever the neighborhood changes.
Link copied to clipboard