Grid
open class Grid @JvmOverloads constructor(environment: Environment<*, *>, randomGenerator: RandomGenerator, xStart: Double, yStart: Double, xEnd: Double, yEnd: Double, xStep: Double, yStep: Double, xRand: Double = 0.0, yRand: Double = 0.0, xShift: Double = 0.0, yShift: Double = 0.0) : Deployment<Position<*>> (source)
A (possibly randomized) grid of nodes.
Parameters
environment
the {@link Environment}
Content copied to clipboard
randomGenerator
the {@link RandomGenerator}
Content copied to clipboard
xStart
the start x position
Content copied to clipboard
yStart
the start y position
Content copied to clipboard
xEnd
the end x position
Content copied to clipboard
yEnd
the end y position
Content copied to clipboard
xStep
how distant on the x axis (on average) nodes should be
Content copied to clipboard
yStep
how distant on the y axis (on average) nodes should be
Content copied to clipboard
xRand
how randomized should be positions along the x axis
Content copied to clipboard
yRand
how randomized should be positions along the y axis
Content copied to clipboard
xShift
how shifted should be positions between lines
Content copied to clipboard
yShift
how shifted should be positions along columns
Content copied to clipboard
Constructors
Functions
Link copied to clipboard
Optional LinkingRule associated to the deployment.
Link copied to clipboard
Link copied to clipboard