Class AbstractGeneticAlgorithm.FitnessContainer

    • Field Detail

      • m_Fitness

        protected double m_Fitness
        the fitness score.
      • m_Setup

        protected Object m_Setup
        the setup.
      • m_Weights

        protected int[] m_Weights
        the weights.
    • Constructor Detail

      • FitnessContainer

        public FitnessContainer​(double fitness,
                                Object setup,
                                int[] weights)
        Initializes the container.
        Parameters:
        fitness - the fitness
        setup - the setup
        weights - the weights
    • Method Detail

      • getFitness

        public double getFitness()
        Returns the fitness.
        Returns:
        the fitness
      • getSetup

        public Object getSetup()
        Returns the setup.
        Returns:
        the setup
      • getWeights

        public int[] getWeights()
        Returns the weights.
        Returns:
        the weights
      • toString

        public String toString()
        Returns a short string description.
        Overrides:
        toString in class Object
        Returns:
        the description