Class RandomCartesianAdder<T>

java.lang.Object
repast.simphony.space.continuous.RandomCartesianAdder<T>
All Implemented Interfaces:
ContinuousAdder<T>, Adder<ContinuousSpace<T>,T>

public class RandomCartesianAdder<T> extends Object implements ContinuousAdder<T>
This will place the added object at a random location in the space. Since the space should be adding new objects to itself automatically, this performs a move on those objects to a random location.
  • Constructor Details

    • RandomCartesianAdder

      public RandomCartesianAdder()
  • Method Details

    • add

      public void add(ContinuousSpace<T> space, T obj)
      Adds the specified object to the space at a random location.
      Specified by:
      add in interface Adder<ContinuousSpace<T>,T>
      Parameters:
      space - the space to add the object to.
      obj - the object to add.