uchicago.src.sim.space
Class HexMultiNeighborhooder
java.lang.Object
uchicago.src.sim.space.AbstractNeighborhooder
uchicago.src.sim.space.HexMultiNeighborhooder
- All Implemented Interfaces:
- Neighborhooder
public class HexMultiNeighborhooder
- extends AbstractNeighborhooder
|
Method Summary |
protected void |
addXY(java.util.ArrayList v,
int x,
int y)
|
java.util.Vector |
getNeighbors(int x,
int y,
int[] extents,
boolean returnNull)
|
java.util.ArrayList |
getNeighborsList(int x,
int y,
int[] extents,
boolean returnNull)
|
java.util.ArrayList |
getNeighborsLoc(int x,
int y,
int[] extents,
boolean returnNull)
|
protected java.util.ArrayList |
getNeighs(int x,
int y,
int[] extents,
boolean returnNull)
|
int |
xnorm(int x)
Normalize the x value to the toroidal coordinates |
int |
ynorm(int y)
Normalize the y value to the toroidal coordinates |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexMultiNeighborhooder
public HexMultiNeighborhooder(IMulti2DGrid space)
xnorm
public int xnorm(int x)
- Normalize the x value to the toroidal coordinates
- Parameters:
x - the value to normalize
- Returns:
- the normalized value
ynorm
public int ynorm(int y)
- Normalize the y value to the toroidal coordinates
- Parameters:
y - the value to normalize
- Returns:
- the normalized value
getNeighbors
public java.util.Vector getNeighbors(int x,
int y,
int[] extents,
boolean returnNull)
getNeighborsList
public java.util.ArrayList getNeighborsList(int x,
int y,
int[] extents,
boolean returnNull)
getNeighborsLoc
public java.util.ArrayList getNeighborsLoc(int x,
int y,
int[] extents,
boolean returnNull)
getNeighs
protected java.util.ArrayList getNeighs(int x,
int y,
int[] extents,
boolean returnNull)
addXY
protected void addXY(java.util.ArrayList v,
int x,
int y)