public abstract class Pheromone extends Object
Constructor and Description |
---|
Pheromone(String name,
int width,
int height,
float evaporationCoeff,
float diffusionCoeff) |
Pheromone(String name,
int width,
int height,
int evapPercentage,
int diffPercentage) |
Modifier and Type | Method and Description |
---|---|
abstract void |
diffusion() |
abstract void |
diffusionAndEvaporation() |
abstract void |
evaporation() |
abstract float |
get(int index)
access to underlying buffer
|
float |
get(int x,
int y) |
protected int |
get1DIndex(int x,
int y) |
float |
getDiffusionCoefficient() |
PheromoneCoefficientBoundedRangeModel |
getDiffusionPercentage() |
float |
getEvaporationCoefficient() |
PheromoneCoefficientBoundedRangeModel |
getEvaporationPercentage() |
int |
getHeight() |
int |
getMaxDirection(int xcor,
int ycor) |
float |
getMaximum() |
int |
getMinDirection(int i,
int j) |
String |
getName() |
abstract FloatBuffer |
getValuesFloatBuffer() |
int |
getWidth() |
void |
incValue(int index,
float inc)
Adds
inc to the current value of the cell
with the corresponding index |
void |
incValue(int xcor,
int ycor,
float value) |
protected abstract void |
set(int index,
float value)
access to underlying buffer
|
void |
set(int x,
int y,
float value) |
void |
setEvaporationPercentage(int evaporationPercentage)
Deprecated.
|
void |
setMaximum(float maximum) |
String |
toString() |
void |
updateFieldMaxDir() |
public Pheromone(String name, int width, int height, int evapPercentage, int diffPercentage)
public Pheromone(String name, int width, int height, float evaporationCoeff, float diffusionCoeff)
protected int get1DIndex(int x, int y)
public final float getDiffusionCoefficient()
public final float getEvaporationCoefficient()
public final float get(int x, int y)
public void set(int x, int y, float value)
public void incValue(int xcor, int ycor, float value)
public abstract FloatBuffer getValuesFloatBuffer()
public abstract float get(int index)
index
- protected abstract void set(int index, float value)
index
- @Deprecated public void setEvaporationPercentage(int evaporationPercentage)
public int getWidth()
public int getHeight()
public abstract void diffusion()
public abstract void diffusionAndEvaporation()
public abstract void evaporation()
public float getMaximum()
public void updateFieldMaxDir()
public void setMaximum(float maximum)
maximum
- the maximum to setpublic int getMaxDirection(int xcor, int ycor)
public int getMinDirection(int i, int j)
public void incValue(int index, float inc)
inc
to the current value of the cell
with the corresponding indexindex
- cell's indexinc
- how much to addpublic String getName()
public PheromoneCoefficientBoundedRangeModel getDiffusionPercentage()
public PheromoneCoefficientBoundedRangeModel getEvaporationPercentage()