Package HAL.GridsAndAgents
Class PopulationGrid2D
- java.lang.Object
-
- HAL.GridsAndAgents.PopulationGridBase
-
- HAL.GridsAndAgents.PopulationGrid2D
-
- All Implemented Interfaces:
Grid2D
,java.lang.Iterable<java.lang.Integer>
public class PopulationGrid2D extends PopulationGridBase implements Grid2D
-
-
Field Summary
-
Fields inherited from class HAL.GridsAndAgents.PopulationGridBase
length, usingSparseIndices
-
-
Constructor Summary
Constructors Constructor Description PopulationGrid2D(int xDim, int yDim)
PopulationGrid2D(int xDim, int yDim, boolean wrapX, boolean wrapY)
-
Method Summary
-
Methods inherited from class HAL.GridsAndAgents.PopulationGridBase
Add, AddTo, AddTo, ApplyOccupied, CopyTo, CopyTo, Get, iterator, OccupiedArea, Pop, Set, SetAll, SetupSparseIndices, Update, UpdateCt
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface HAL.Interfaces.Grid2D
AlongLineIs, ApplyHood, ApplyHood, ApplyHoodMapped, ApplyRectangle, BoundaryIs, ContainsValidI, ContainsValidI, DispX, DispY, Dist, DistSquared, GetHoodI, I, I, In, In, InWrap, ItoX, ItoY, MapHood, MapHood, MapHood, MapHood, MapI, MapXpt, MapXsq, MapYpt, MapYsq, RandomHoodI, WrapI
-
-
-
-
Method Detail
-
Get
public int Get(int x, int y)
-
Set
public void Set(int x, int y, int val)
-
Add
public void Add(int x, int y, int val)
-
Diffusion
public void Diffusion(double diffRate, MultinomialCalc mn)
-
-