|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.repastdemos.hexabugs.HexaBug
public class HexaBug
The agent for the HexaBugs (HeatBugs on a hexagonal space) simulation. This pretty much follows the Swarm code.
HexaBugsModel| Constructor Summary | |
|---|---|
HexaBug(HexaSpace space,
Object2DHexagonalTorus world,
int x,
int y,
int idealTemp,
int outputHeat,
float randomMoveProb)
|
|
| Method Summary | |
|---|---|
void |
draw(SimGraphics g)
Invoked when the object should draw itself |
boolean |
getBDExample()
|
int |
getIdealTemp()
|
int |
getOutputHeat()
|
java.util.Hashtable |
getParameterDescriptors()
Returns a java.util.Hashtable whose keys are parameters names, and whose values are uchicago.src.reflector.PropertyDescriptors. |
float |
getRandomMoveProb()
|
double |
getUnhappiness()
|
int |
getX()
Gets the x coordinate of this drawable. |
int |
getY()
Gets the y coordinate of the this drawable. |
void |
incrementOutputHeat(int increment)
|
void |
setBDExample(boolean val)
|
void |
setIdealTemp(int idealTemp)
|
void |
setOutputHeat(int outputHeat)
|
void |
setRandomMoveProb(float f)
|
void |
setUnhappiness(double value)
|
void |
setX(int x)
|
void |
setXY(int x,
int y)
|
void |
setY(int y)
|
void |
step()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HexaBug(HexaSpace space,
Object2DHexagonalTorus world,
int x,
int y,
int idealTemp,
int outputHeat,
float randomMoveProb)
| Method Detail |
|---|
public void setXY(int x,
int y)
public void step()
public double getUnhappiness()
public void setUnhappiness(double value)
public int getX()
Drawable
getX in interface Drawablepublic void setX(int x)
public int getY()
Drawable
getY in interface Drawablepublic void setY(int y)
public int getIdealTemp()
public void setIdealTemp(int idealTemp)
public int getOutputHeat()
public void setOutputHeat(int outputHeat)
public void incrementOutputHeat(int increment)
public float getRandomMoveProb()
public void setRandomMoveProb(float f)
public void setBDExample(boolean val)
public boolean getBDExample()
public java.util.Hashtable getParameterDescriptors()
DescriptorContainer
getParameterDescriptors in interface DescriptorContainerpublic void draw(SimGraphics g)
Drawable
draw in interface Drawable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||