Connect Within Distance
class ConnectWithinDistance<T, P : Position<P>>(environment: Environment<T, P>, range: Double) : RangeBasedNetworkModel<T, P>
it.unibo.alchemist.model.NetworkModel which connects the nodes of environment whose distance is shorter than range.
Parameters
environment
the environment whose nodes this model links
range
the connection radius
Type Parameters
T
concentration type
P
position type
Properties
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