CloseToAlreadyDeployed

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

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: RandomGenerator, environment: Environment<T, P>, nodeCount: Int, variance: Double)

Functions

Link copied to clipboard

Returns the optional NetworkModel associated to the deployment, or null if there is none.

Link copied to clipboard
open operator override fun iterator(): Iterator<P>
Link copied to clipboard
override fun stream(): Stream<P>

Returns a Stream over the positions of this Deployment.