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 Details

    • logger

      protected static org.apache.log4j.Logger logger
  • Constructor Details

  • Method Details

    • 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