Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## sim.field.grid
Class ObjectGrid2D

    java.lang.Object
      sim.field.grid.AbstractGrid2D
          sim.field.grid.ObjectGrid2D

All Implemented Interfaces:
  Grid2D, java.io.Serializable

public class ObjectGrid2D
extends AbstractGrid2D

A storage facility for objects. Most functionality similar to DoubleGrid2D, just that objects are stored, rather than real-valued numbers.

See Also:
  Serialized Form

Field Summary
`java.lang.Object[][]` | `field`

Fields inherited from class sim.field.grid.AbstractGrid2D
`height, width`

Constructor Summary
`ObjectGrid2D(int xdim, int ydim)`
`ObjectGrid2D(int xdim, int ydim, java.lang.Object initialValue)`
`ObjectGrid2D(ObjectGrid2D values)`

Method Summary
`java.lang.Object` | `get(int x, int y)`
`void` | `getNeighborsHamiltonianDistance(int x, int y, int dist, boolean toroidal, Bag result, IntBag xPos, IntBag yPos)`
`void` | `getNeighborsHexagonalDistance(int x, int y, int dist, boolean toroidal, Bag result, IntBag xPos, IntBag yPos)`
`void` | `getNeighborsMaxDistance(int x, int y, int dist, boolean toroidal, Bag result, IntBag xPos, IntBag yPos)`
`void` | `set(int x, int y, java.lang.Object val)`
`ObjectGrid2D` | `setTo(java.lang.Object thisObj)`
`ObjectGrid2D` | `setTo(ObjectGrid2D values)`

Methods inherited from class sim.field.grid.AbstractGrid2D
`dlx, dly, downx, downy, drx, dry, getHeight, getNeighborsHamiltonianDistance, getNeighborsHexagonalDistance, getNeighborsMaxDistance, getWidth, stx, sty, tx, ty, ulx, uly, upx, upy, urx, ury`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### field

    public java.lang.Object[][] field

Constructor Detail

### ObjectGrid2D

    public ObjectGrid2D(int xdim,
                        int ydim)

### ObjectGrid2D

    public ObjectGrid2D(int xdim,
                        int ydim,
                        java.lang.Object initialValue)

### ObjectGrid2D

    public ObjectGrid2D(ObjectGrid2D values)

Method Detail

### set

    public final void set(int x,
                          int y,
                          java.lang.Object val)

### get

    public final java.lang.Object get(int x,
                                      int y)

### setTo

    public final ObjectGrid2D setTo(java.lang.Object thisObj)

### setTo

    public final ObjectGrid2D setTo(ObjectGrid2D values)

### getNeighborsMaxDistance

    public final void getNeighborsMaxDistance(int x,
                                              int y,
                                              int dist,
                                              boolean toroidal,
                                              Bag result,
                                              IntBag xPos,
                                              IntBag yPos)

### getNeighborsHamiltonianDistance

    public final void getNeighborsHamiltonianDistance(int x,
                                                      int y,
                                                      int dist,
                                                      boolean toroidal,
                                                      Bag result,
                                                      IntBag xPos,
                                                      IntBag yPos)

### getNeighborsHexagonalDistance

    public final void getNeighborsHexagonalDistance(int x,
                                                    int y,
                                                    int dist,
                                                    boolean toroidal,
                                                    Bag result,
                                                    IntBag xPos,
                                                    IntBag yPos)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD