-
- All Implemented Interfaces:
-
it.unibo.alchemist.loader.deployments.Deployment,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public class Grid implements Deployment<Position<?>>
A (possibly randomized) grid of nodes.
-
-
Constructor Summary
Constructors Constructor Description Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand, Double xShift, Double yShift)Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand, Double xShift)Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand)Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand)Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep)
-
Method Summary
-
Methods inherited from class it.unibo.alchemist.loader.deployments.Grid
getAssociatedLinkingRule, iterator -
Methods inherited from class kotlin.collections.MutableIterable
forEach, spliterator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Grid
Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand, Double xShift, Double yShift)
- Parameters:
environment-the {@link Environment}randomGenerator-the {@link RandomGenerator}xStart-the start x positionyStart-the start y positionxEnd-the end x positionyEnd-the end y positionxStep-how distant on the x axis (on average) nodes should beyStep-how distant on the y axis (on average) nodes should bexRand-how randomized should be positions along the x axisyRand-how randomized should be positions along the y axisxShift-how shifted should be positions between linesyShift-how shifted should be positions along columns
-
Grid
Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand, Double xShift)
- Parameters:
environment-the {@link Environment}randomGenerator-the {@link RandomGenerator}xStart-the start x positionyStart-the start y positionxEnd-the end x positionyEnd-the end y positionxStep-how distant on the x axis (on average) nodes should beyStep-how distant on the y axis (on average) nodes should bexRand-how randomized should be positions along the x axisyRand-how randomized should be positions along the y axisxShift-how shifted should be positions between lines
-
Grid
Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand, Double yRand)
- Parameters:
environment-the {@link Environment}randomGenerator-the {@link RandomGenerator}xStart-the start x positionyStart-the start y positionxEnd-the end x positionyEnd-the end y positionxStep-how distant on the x axis (on average) nodes should beyStep-how distant on the y axis (on average) nodes should bexRand-how randomized should be positions along the x axisyRand-how randomized should be positions along the y axis
-
Grid
Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep, Double xRand)
- Parameters:
environment-the {@link Environment}randomGenerator-the {@link RandomGenerator}xStart-the start x positionyStart-the start y positionxEnd-the end x positionyEnd-the end y positionxStep-how distant on the x axis (on average) nodes should beyStep-how distant on the y axis (on average) nodes should bexRand-how randomized should be positions along the x axis
-
Grid
Grid(Environment<?, ?> environment, RandomGenerator randomGenerator, Double xStart, Double yStart, Double xEnd, Double yEnd, Double xStep, Double yStep)
- Parameters:
environment-the {@link Environment}randomGenerator-the {@link RandomGenerator}xStart-the start x positionyStart-the start y positionxEnd-the end x positionyEnd-the end y positionxStep-how distant on the x axis (on average) nodes should beyStep-how distant on the y axis (on average) nodes should be
-
-
-
-