Circle
class Circle<P : Position<out P>>(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, centerX: Double, centerY: Double, radius: Double) : AbstractRandomDeployment<P>
Randomly deploys nodes inside a circle.
Parameters
environment
the Environment
randomGenerator
the RandomGenerator
nodes
the number of nodes
centerX
the center x of the circle
centerY
the center y of the circle
radius
the radius of the circle
Type Parameters
P
Position type
Constructors
Link copied to clipboard
constructor(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, centerX: Double, centerY: Double, radius: 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.