org.processmining.plugins.heuristicsnet.miner.heuristics.miner.fitness
Class MapIdenticalHeuristicsNets
java.lang.Object
org.processmining.plugins.heuristicsnet.miner.heuristics.miner.fitness.MapIdenticalHeuristicsNets
public class MapIdenticalHeuristicsNets
- extends java.lang.Object
This class builds a mapping of identical
HeuristicNet objects (i.e., individuals)
in a give population.
The equality is based on the equals method of
HeuristicsNet.
- Author:
- Ana Karla Alves de Medeiros
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapIdenticalHeuristicsNets
public MapIdenticalHeuristicsNets(HeuristicsNet[] population)
- Constructs the mapping that identifying the
HeuristicsNets
objects (i.e. individuals) that are the same in a given population.
- Parameters:
population - array containing the HeuristicsNet objects
to which the mapping should be construct
getIndenticalHeuristicsNet
public final 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.
- Parameters:
heuristicNetIndex - the index (or position) of the HeuristicsNet object in the population
- Returns:
- the position of the identical
HeuristicsNet 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.