Class DefaultGrid<T>

    • Constructor Detail

      • DefaultGrid

        public DefaultGrid​(String name,
                           GridAdder<T> adder,
                           GridPointTranslator translator,
                           CellAccessor<T,​Map<GridPoint,​Object>> accessor,
                           int... size)
        Parameters:
        name - the name of the grid
        adder - the adder for adding new objects to the grid
        translator -
        accessor - the accessor used for accessing grid cells
        size - the size of the space
      • DefaultGrid

        public DefaultGrid​(String name,
                           GridAdder<T> adder,
                           GridPointTranslator translator,
                           CellAccessor<T,​Map<GridPoint,​Object>> accessor,
                           int[] size,
                           int[] origin)
        Parameters:
        name - the name of the grid
        adder - the adder for adding new objects to the grid
        translator -
        accessor - the accessor used for accessing grid cells
        size - the size of the space
        origin - the origin of the space
      • DefaultGrid

        public DefaultGrid​(String name,
                           int... size)
        Parameters:
        name - the name of the grid
        size - the size of the space
      • DefaultGrid

        public DefaultGrid​(String name,
                           int[] size,
                           int[] origin)
        Parameters:
        name - the name of the grid
        size - the size of the space
        origin - the origin of the space