Rectangle
open class Rectangle<P : Position<out P>>(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, x: Double, y: Double, sizeX: Double, sizeY: Double) : AbstractRandomDeployment<P>
Randomly deploys nodes inside a rectangle.
Parameters
environment
the Environment
randomGenerator
the RandomGenerator
nodes
the number of nodes
sizeX
x size
sizeY
y size
Type Parameters
P
position type
Inheritors
Constructors
Link copied to clipboard
constructor(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, x: Double, y: Double, sizeX: Double, sizeY: Double)
Functions
Link copied to clipboard
Returns the optional NetworkModel associated to the deployment, or null if there is none.
Link copied to clipboard
Returns a random element of the Iterable using the provided randomGenerator.
Link copied to clipboard
Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.