Class TacticsResultCandidate


  • public class TacticsResultCandidate
    extends DSEIndividual
    HeuristicCandidate is used to manage the candidates generated be heuristics
    • Field Detail

      • logger

        protected static org.apache.log4j.Logger logger
    • 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