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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Polygon(Environment<?, P> environment, RandomGenerator randomGenerator, Integer nodes, List<?> pointsInput)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 polygon
        pointsInput - the points of the polygon.
    • Method Detail