Class TacticsResultCandidate
- java.lang.Object
-
- org.opt4j.core.Individual
-
- de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEIndividual
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticsResultCandidate
-
public class TacticsResultCandidate extends DSEIndividual
HeuristicCandidate is used to manage the candidates generated be heuristics
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description TacticsResultCandidate(DecisionSpace problem, DSEIndividual parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCandidateWeight()
double
getFinalWeight()
Returns product of Heuristic Weight and Candidate WeightITactic
getHeuristic()
DSEIndividual
getParent()
void
setCandidateWeight(double candidateWeight)
Sets weight of candidatevoid
setHeuristic(ITactic heuristic)
Sets heuristic that generated candidate-
Methods inherited from class de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEIndividual
equals, getGenotype, getGenotypeString, getID, getNumericID, getObjectives, getProblem, hashCode, setIndividualStatusListeners, setObjectives
-
-
-
-
Constructor Detail
-
TacticsResultCandidate
public TacticsResultCandidate(DecisionSpace problem, DSEIndividual parent)
-
-
Method Detail
-
getCandidateWeight
public double getCandidateWeight()
- Returns:
- Weight of candidate
-
setCandidateWeight
public void setCandidateWeight(double candidateWeight)
Sets weight of candidate- Parameters:
candidateWeight
- Weight of candidate. If parameter is < 0, weight will be 0. If parameter is > 1, weight will be 1
-
getHeuristic
public ITactic getHeuristic()
- Returns:
- Heuristic that generated this candidate
-
setHeuristic
public void setHeuristic(ITactic heuristic)
Sets heuristic that generated candidate- Parameters:
heuristic
-
-
getFinalWeight
public double getFinalWeight()
Returns product of Heuristic Weight and Candidate Weight- Returns:
-
getParent
public DSEIndividual getParent()
- Returns:
- the parent
-
-