SpecificPositions

class SpecificPositions(environment: Environment<*, *>, positions: Iterable<Number>) : Deployment<Position<*>>

Given an environment and a list of list of numbers, it creates a list of the right position type for the environment.

Constructors

Link copied to clipboard
constructor(environment: Environment<*, *>, vararg positions: Iterable<Number>)

Functions

Link copied to clipboard

Optional LinkingRule associated to the deployment.

Link copied to clipboard
open operator override fun iterator(): MutableIterator<Position<*>>
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<Position<*>>