public class CPU_SobelPheromone extends Pheromone
Constructor and Description |
---|
CPU_SobelPheromone(String name,
int width,
int height,
float evaporationPercentage,
float diffusionPercentage,
int[] neighborsIndexes2) |
CPU_SobelPheromone(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 |
getMaxDirection(int xcor,
int ycor) |
int |
getMinDirection(int i,
int j) |
int[] |
getNeighborsIndexes() |
FloatBuffer |
getValuesFloatBuffer() |
void |
set(int index,
float value)
access to underlying buffer
|
get, get1DIndex, getDiffusionCoefficient, getDiffusionPercentage, getEvaporationCoefficient, getEvaporationPercentage, getHeight, getMaximum, getName, getWidth, incValue, incValue, set, setEvaporationPercentage, setMaximum, toString, updateFieldMaxDir
public CPU_SobelPheromone(String name, int width, int height, int evaporationPercentage, int diffusionPercentage, int[] neighborsIndexes2)
public CPU_SobelPheromone(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 int getMaxDirection(int xcor, int ycor)
getMaxDirection
in class Pheromone
public int getMinDirection(int i, int j)
getMinDirection
in class Pheromone
public void diffusionAndEvaporation()
diffusionAndEvaporation
in class Pheromone
public void evaporation()
evaporation
in class Pheromone
public int[] getNeighborsIndexes()