AbstractRandomDeployment

abstract class AbstractRandomDeployment<P : Position<out P>>(environment: Environment<*, P>, randomGenerator: <Error class: unknown class>, nodeCount: Int) : Deployment<P>

Parameters

environment
randomGenerator

the RandomGenerator

nodeCount

the number of nodes

Inheritors

Constructors

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

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
open override fun stream(): Stream<P>