bool Chromosome::operator < (const Chromosome& another)const { if(this->TestCaseCount < another.getCount()) return true; else if(this->TestCaseCount > another.getCount()) return false; else return((this->fitness)< another.getFitness()); }
Chromosome::Chromosome(const Chromosome& other) { //copy ctor this->TSList = other.getSequence(); this->conditions = other.getConditionHash(); this->TestCaseCount = other.getCount(); this->TotalWeight = other.getWeight(); this->fitness = other.getFitness(); this->mcount = other.getMessageCount(); this->size = other.getSize(); }