|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
uchicago.src.repastdemos.hexabugs.HexaBugsModel
public class HexaBugsModel
A translation of the Swarm example simulation Heat Bugs. The heat bugs simulation consists of heat bugs - simple agents that absorb and expel heat and a heatspace which diffuses this heat into the area surrounding the bug. Heat bugs have an ideal temperature and will move about the space in attempt to achieve this idea temperature. Unlike the traditional heat bugs this takes place on a hexagonal space.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
|---|
descriptors, modelManipulator |
| Constructor Summary | |
|---|---|
HexaBugsModel()
|
|
| Method Summary | |
|---|---|
void |
begin()
Begins a simulation run. |
double |
getDiffusionConstant()
|
double |
getEvapRate()
|
java.lang.String[] |
getInitParam()
Gets the names of the initial model parameters to set. |
int |
getMaxIdealTemp()
|
int |
getMaxOutputHeat()
|
int |
getMinIdealTemp()
|
int |
getMinOutputHeat()
|
java.lang.String |
getName()
Gets the name of the model/simulation. |
int |
getNumBugs()
|
float |
getRandomMoveProbability()
|
Schedule |
getSchedule()
Gets the Schedule created by the model. |
int |
getWorldXSize()
|
int |
getWorldYSize()
|
static void |
main(java.lang.String[] args)
|
void |
setDiffusionConstant(double constant)
|
void |
setEvapRate(double rate)
|
void |
setMaxIdealTemp(int temp)
|
void |
setMaxOutputHeat(int heat)
|
void |
setMinIdealTemp(int temp)
|
void |
setMinOutputHeat(int heat)
|
void |
setNumBugs(int numBugs)
|
void |
setRandomMoveProbability(float prob)
|
void |
setup()
Prepares a model for a new run, typically by deallocating objects or setting them to some reasonable default. |
void |
setWorldXSize(int size)
|
void |
setWorldYSize(int size)
|
void |
step()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HexaBugsModel()
| Method Detail |
|---|
public void step()
public void begin()
SimModel
public void setup()
SimModel
public java.lang.String[] getInitParam()
SimModel
public Schedule getSchedule()
SimModel
public java.lang.String getName()
SimModel
public int getNumBugs()
public void setNumBugs(int numBugs)
public double getEvapRate()
public void setEvapRate(double rate)
public double getDiffusionConstant()
public void setDiffusionConstant(double constant)
public int getWorldXSize()
public void setWorldXSize(int size)
public int getWorldYSize()
public void setWorldYSize(int size)
public int getMinIdealTemp()
public void setMinIdealTemp(int temp)
public int getMaxIdealTemp()
public void setMaxIdealTemp(int temp)
public int getMinOutputHeat()
public void setMinOutputHeat(int heat)
public int getMaxOutputHeat()
public void setMaxOutputHeat(int heat)
public float getRandomMoveProbability()
public void setRandomMoveProbability(float prob)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||