CloseToAlreadyDeployed

class CloseToAlreadyDeployed<T, P : Position<P>>(randomGenerator: <Error class: unknown class>, environment: Environment<T, P>, nodeCount: Int, variance: Double) : AbstractCloseTo<T, P>

This it.unibo.alchemist.model.Deployment places new nodes in the proximity of those already included in the environment. Behaviour if there are no nodes already inserted is undefined.

Constructors

Link copied to clipboard
constructor(randomGenerator: <Error class: unknown class>, environment: Environment<T, P>, nodeCount: Int, variance: Double)

Functions

Link copied to clipboard

Optional LinkingRule associated to the deployment.

Link copied to clipboard
open operator override fun iterator(): MutableIterator<P>
Link copied to clipboard
fun <R> Iterable<R>.randomElement(randomGenerator: <Error class: unknown class>): R

Returns a random element of the Iterable using the provided randomGenerator.

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: <Error class: unknown class>): Iterable<R>

Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.

Link copied to clipboard
override fun stream(): Stream<P>