edu.turtlekit2.kernel.environment
Class PatchVariable

java.lang.Object
  extended by edu.turtlekit2.kernel.environment.PatchVariable

public final class PatchVariable
extends Object

Use this class to create a numeric patch variable (double). Having created one, you can set its evaporation and diffusion coefficients to a specific percentage (0 <= coef <= 1). You can also give a default value for this flavor (when the simulation starts each patch has its own flavor with the given default value). Evaporation simply consists in decreasing the value. Diffusion makes each patch share a percentage of a value with its eight neighboring patches.

Version:
1.2 4/1/2001
Author:
Fabien MICHEL

Field Summary
 double diffCoef
           
 double evaporation
           
 String name
           
 
Constructor Summary
PatchVariable(String name)
           
 
Method Summary
 String getName()
           
 void setDefaultValue(double defaultValue)
           
 void setDiffuseCoef(double diffuseCoef)
           
 void setEvapCoef(double evapCoef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

evaporation

public double evaporation

diffCoef

public double diffCoef

name

public String name
Constructor Detail

PatchVariable

public PatchVariable(String name)
Method Detail

setEvapCoef

public final void setEvapCoef(double evapCoef)

setDiffuseCoef

public final void setDiffuseCoef(double diffuseCoef)

setDefaultValue

public final void setDefaultValue(double defaultValue)

getName

public String getName()
Returns:
Returns the name.