Class Polygon
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Deployment
,kotlin.collections.Iterable
,kotlin.collections.MutableIterable
public class Polygon<P extends Position2D<out P>> extends AbstractRandomDeployment<P>
Creates a new Polygon with the given points.
-
-
Constructor Summary
Constructors Constructor Description Polygon(Environment<?, P> environment, RandomGenerator randomGenerator, Integer nodes, List<?> pointsInput)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class it.unibo.alchemist.model.deployments.AbstractRandomDeployment
stream
-
Methods inherited from class it.unibo.alchemist.model.Deployment
getAssociatedLinkingRule, iterator
-
Methods inherited from class kotlin.collections.Iterable
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Polygon
Polygon(Environment<?, P> environment, RandomGenerator randomGenerator, Integer nodes, List<?> pointsInput)
- Parameters:
nodes
- the count of nodes that need to get displaced inside the polygonpointsInput
- the points of the polygon.
-
-
-
-