uchicago.src.sim.hexaBugs
Class HexaSpace
java.lang.Object
|
+--uchicago.src.sim.space.Diffuse2D
|
+--uchicago.src.sim.space.Diffuse2DHexagonal
|
+--uchicago.src.sim.hexaBugs.HexaSpace
- All Implemented Interfaces:
- Discrete2DSpace, Torus
- public class HexaSpace
- extends Diffuse2DHexagonal
The environment that the heat bugs inhabit. This uses a Diffuse2DHexagonal
to diffuse the heat absorbed from the bugs.
|
Field Summary |
static int |
COLD
|
static int |
HOT
|
| Fields inherited from class uchicago.src.sim.space.Diffuse2D |
diffCon, evapRate, MAX, nextX, nextY, prevX, prevY, readMatrix, writeMatrix, x, xSize, y, ySize |
|
Constructor Summary |
HexaSpace(double diffusionConstant,
double evaporationRate,
int xSize,
int ySize)
|
|
Method Summary |
void |
addHeat(int x,
int y,
int heat)
|
Point |
findExtreme(int type,
int x,
int y)
Find the extreme hot or cold within this 9 cell neighborhood |
| Methods inherited from class uchicago.src.sim.space.Diffuse2D |
compareMax, compareMin, findMaximum, findMinimum, getMatrix, getObjectAt, getSize, getSizeX, getSizeY, getValueAt, putObjectAt, putValueAt, setDiffusionConstant, setEvaporationRate, update, xnorm, ynorm |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOT
public static final int HOT
- See Also:
- Constant Field Values
COLD
public static final int COLD
- See Also:
- Constant Field Values
HexaSpace
public HexaSpace(double diffusionConstant,
double evaporationRate,
int xSize,
int ySize)
addHeat
public void addHeat(int x,
int y,
int heat)
findExtreme
public Point findExtreme(int type,
int x,
int y)
- Find the extreme hot or cold within this 9 cell neighborhood
- Returns:
- the extreme point
Bug reports and feature requests to RePast