ConnectionBeam

Connects two nodes if, throwing a beam from one to the other, there exists at least one path entirely inside the beam that connects the two nodes. This model is ideal for environments with obstacles, where the user wants some tolerance in connection breaking.

Parameters

environment

the environment whose nodes this model links

radius

beam maximum length

beamWidth

beam span (tolerance)

Type Parameters

T

concentration type

Constructors

Link copied to clipboard
constructor(environment: Environment<T, Euclidean2DPosition>, radius: Double, beamWidth: Double)

Properties

Link copied to clipboard

The neighborhood of this node, as provided by neighborhoodOf.

Functions

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

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
infix fun NetworkModel<*>.shouldEqual(other: NetworkModel<*>)
Link copied to clipboard
override fun toString(): String