Class FastDenseSingleOccuGrid<T>

All Implemented Interfaces:
Grid<T>, Projection<T>
Direct Known Subclasses:
ContextFastSingleGrid

public class FastDenseSingleOccuGrid<T> extends AbstractGrid<T,Object[]>
Default implementation of an n-dimensional continuous space.
  • Constructor Details

    • FastDenseSingleOccuGrid

      public FastDenseSingleOccuGrid(String name, GridAdder<T> adder, GridPointTranslator translator, int... size)
      Constructs this space with the specified name, adder, translator, accessor and size. The size is the size of the space meaning [3, 3] is a 3x3 space.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
    • FastDenseSingleOccuGrid

      public FastDenseSingleOccuGrid(String name, int... size)
      Constructs this space with the specified name and size. The size is the size of the space meaning [3, 3] is a 3x3 space. This uses by default a SimpleGridAdder, a StickyBorders, and a MultiOccupancyCoordinateAccessor; this means that objects cannot leave the space, are added to (0, 0, ..., 0) when added to the context, and that multiple objects can be at the same coordinate.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
  • Method Details