Class SimpleGridAdder<T>

java.lang.Object
repast.simphony.space.grid.SimpleGridAdder<T>
All Implemented Interfaces:
GridAdder<T>, Adder<Grid<T>,T>

public class SimpleGridAdder<T> extends Object implements GridAdder<T>
This is a simple implementation of an adder that doesn't perform any action.
  • Constructor Details

    • SimpleGridAdder

      public SimpleGridAdder()
  • Method Details

    • add

      public void add(Grid<T> destination, T object)
      Adds the specified object to the space. This will add the object to a space without assigning it a location. When this adder is used, the user must then move the object to some location on the space.
      Specified by:
      add in interface Adder<Grid<T>,T>
      Parameters:
      destination - the space to add the object to.
      object - the object to add.