public class JavaPheromone extends Pheromone
Constructor and Description |
---|
JavaPheromone(String name,
int width,
int height,
float evaporationPercentage,
float diffusionPercentage,
int[] neighborsIndexes2) |
JavaPheromone(String name,
int width,
int height,
int evaporationPercentage,
int diffusionPercentage,
int[] neighborsIndexes2) |
Modifier and Type | Method and Description |
---|---|
void |
diffusion() |
void |
diffusionAndEvaporation() |
void |
evaporation() |
float |
get(int index)
access to underlying buffer
|
int[] |
getNeighborsIndexes() |
FloatBuffer |
getValuesFloatBuffer() |
void |
set(int index,
float value)
access to underlying buffer
|
get, get1DIndex, getDiffusionCoefficient, getDiffusionPercentage, getEvaporationCoefficient, getEvaporationPercentage, getHeight, getMaxDirection, getMaximum, getMinDirection, getName, getWidth, incValue, incValue, set, setEvaporationPercentage, setMaximum, toString, updateFieldMaxDir
public JavaPheromone(String name, int width, int height, int evaporationPercentage, int diffusionPercentage, int[] neighborsIndexes2)
public JavaPheromone(String name, int width, int height, float evaporationPercentage, float diffusionPercentage, int[] neighborsIndexes2)
public float get(int index)
Pheromone
public FloatBuffer getValuesFloatBuffer()
getValuesFloatBuffer
in class Pheromone
public void set(int index, float value)
Pheromone
public void diffusionAndEvaporation()
diffusionAndEvaporation
in class Pheromone
public void evaporation()
evaporation
in class Pheromone
public int[] getNeighborsIndexes()