|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.AscapeObject
org.ascape.model.rule.Rule
org.ascape.model.rule.ExecuteThenUpdate
org.ascape.model.rule.Diffusion
org.ascape.model.rule.ParameterizedDiffusion
public abstract class ParameterizedDiffusion
A rule causing some agent value to diffuse to its neighbors at a particualar constant. Also supports evaporation at a given rate.
| Field Summary |
|---|
| Fields inherited from class org.ascape.model.AscapeObject |
|---|
ARBITRARY_SEED, name, scape |
| Constructor Summary | |
|---|---|
ParameterizedDiffusion(java.lang.String name)
Constructs a paramterized diffusion rule with the provided name. |
|
ParameterizedDiffusion(java.lang.String name,
float diffuseConstant,
float evaporationRate)
Constructs a paramterized diffusion rule with the provided name and paramaters. |
|
| Method Summary | |
|---|---|
void |
execute(Agent agent)
Calculate and store diffusion value to neighbors. |
double |
getDiffusionConstant()
Gets the diffusion constant. |
double |
getEvaporationRate()
Gets the evaporation rate. |
void |
setDiffusionConstant(double diffuseConstant)
Sets the diffusion constant. |
void |
setEvaporationRate(double evaporationRate)
Sets the evaporation rate. |
| Methods inherited from class org.ascape.model.rule.Diffusion |
|---|
getDiffusionValue, isRandomExecution, setDiffusionValue, update |
| Methods inherited from class org.ascape.model.rule.Rule |
|---|
getScape, isCauseRemoval, isIterateAll, setScape |
| Methods inherited from class org.ascape.model.AscapeObject |
|---|
clone, diffDeep, diffDeep, diffDeepBFS, diffDeepDFS, diffDeepValidate, diffDeepVisit, equalsDeep, equalsDeep, equalsDeep, getComparisonStream, getName, getRandom, getRandomSeed, randomInRange, randomInRange, randomIs, randomToLimit, reseed, setComparisonStream, setName, setRandom, setRandomSeed, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterizedDiffusion(java.lang.String name)
name - the name of this object
public ParameterizedDiffusion(java.lang.String name,
float diffuseConstant,
float evaporationRate)
name - the name of this objectdiffuseConstant - the diffuse constantevaporationRate - the evaporation rate| Method Detail |
|---|
public void execute(Agent agent)
execute in class Diffusionagent - the playing agentpublic double getDiffusionConstant()
public void setDiffusionConstant(double diffuseConstant)
diffuseConstant - the new diffusion constantpublic double getEvaporationRate()
public void setEvaporationRate(double evaporationRate)
evaporationRate - the new evaporation rate
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||