// Population.h: interface for the Population class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_POPULATION_H__B6E14F68_B9F7_11D3_AD18_0000F8781723__INCLUDED_) #define AFX_POPULATION_H__B6E14F68_B9F7_11D3_AD18_0000F8781723__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "stdafx.h" #include "History.h" #include "Generation.h" class Population { public: Population(int size, int rules); virtual ~Population(); int run(long limit, long& total, long& period, int flags); void print(FILE* f, long step); void randomize(); void normalize(); protected: History h; Generation g; int rules; CELL getResultForPatternAt(int index); }; #endif // !defined(AFX_POPULATION_H__B6E14F68_B9F7_11D3_AD18_0000F8781723__INCLUDED_)