public class MapIdenticalHeuristicsNets
extends java.lang.Object
HeuristicNet
objects (i.e., individuals)
in a give population.
The equality is based on the equals
method of
HeuristicsNet
.
Constructor and Description |
---|
MapIdenticalHeuristicsNets(HeuristicsNet[] population)
Constructs the mapping that identifying the
HeuristicsNets
objects (i.e. |
Modifier and Type | Method and Description |
---|---|
int |
getIndenticalHeuristicsNet(int heuristicNetIndex)
Identifies which other
HeuristicsNet
object in the population is identical to the
HeuristicsNet object in the provided index
in the population. |
public MapIdenticalHeuristicsNets(HeuristicsNet[] population)
HeuristicsNets
objects (i.e. individuals) that are the same in a given population.population
- array containing the HeuristicsNet
objects
to which the mapping should be constructpublic final int getIndenticalHeuristicsNet(int heuristicNetIndex)
HeuristicsNet
object in the population is identical to the
HeuristicsNet
object in the provided index
in the population.heuristicNetIndex
- the index (or position) of the HeuristicsNet
object in the populationHeuristicsNet
object in the population. The returned
value will be greater or equal to 0 if the given HeuristicsNet
object is identical
to another one in the population. Otherwise, -1 will be returned.