Package HAL.GridsAndAgents
Class PopulationGrid3DLong
- java.lang.Object
-
- HAL.GridsAndAgents.PopulationGridLongBase
-
- HAL.GridsAndAgents.PopulationGrid3DLong
-
- All Implemented Interfaces:
Grid3D
,java.lang.Iterable<java.lang.Integer>
public class PopulationGrid3DLong extends PopulationGridLongBase implements Grid3D
-
-
Field Summary
Fields Modifier and Type Field Description boolean
wrapX
boolean
wrapY
boolean
wrapZ
int
xDim
int
yDim
int
zDim
-
Fields inherited from class HAL.GridsAndAgents.PopulationGridLongBase
length, usingSparseIndices
-
-
Constructor Summary
Constructors Constructor Description PopulationGrid3DLong(int xDim, int yDim, int zDim)
PopulationGrid3DLong(int xDim, int yDim, int zDim, boolean wrapX, boolean wrapY, boolean wrapZ)
-
Method Summary
Modifier and Type Method Description void
Add(int x, int y, int z, int val)
void
Diffusion(double diffRate, MultinomialCalcLong mn)
long
Get(int x, int y, int z)
boolean
IsWrapX()
boolean
IsWrapY()
boolean
IsWrapZ()
int
Length()
void
Set(int x, int y, int z, int val)
int
Xdim()
int
Ydim()
int
Zdim()
-
Methods inherited from class HAL.GridsAndAgents.PopulationGridLongBase
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.Grid3D
ApplyHood, ApplyHood, ApplyHoodMapped, ApplyRectangle, BoundaryIs, ContainsValidI, ContainsValidI, ConvI, ConvXpt, ConvXsq, ConvYpt, ConvYsq, ConvZpt, ConvZsq, DispX, DispY, DispZ, Dist, DistSquared, GetHoodI, I, I, In, In, InWrap, InWrap, ItoX, ItoY, ItoZ, MapHood, MapHood, MapHood, MapHood, RandomHoodI, WrapI
-
-
-
-
Method Detail
-
Get
public long Get(int x, int y, int z)
-
Add
public void Add(int x, int y, int z, int val)
-
Set
public void Set(int x, int y, int z, int val)
-
Diffusion
public void Diffusion(double diffRate, MultinomialCalcLong mn)
-
-