Package 

Class Rectangle

  • All Implemented Interfaces:
    it.unibo.alchemist.loader.displacements.Displacement , java.lang.Iterable

    
    public class Rectangle<P extends Position<out P>>
    extends AbstractRandomDisplacement<P>
                        
    • Constructor Summary

      Constructors 
      Constructor Description
      Rectangle(Environment<out Object, P> pm, RandomGenerator rand, int nodes, double x, double y, double sizeX, double sizeY)
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class it.unibo.alchemist.loader.displacements.AbstractRandomDisplacement

        indexToPosition, makePosition, randomDouble, randomInt, stream
      • Methods inherited from class it.unibo.alchemist.loader.displacements.Displacement

        iterator, stream
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rectangle

        Rectangle(Environment<out Object, P> pm, RandomGenerator rand, int nodes, double x, double y, double sizeX, double sizeY)
        Parameters:
        pm - the Environment
        rand - the RandomGenerator
        nodes - the number of nodes
        x - x start point
        y - y start point
        sizeX - x size
        sizeY - y size