00001
00006 #ifndef _TivEvolutionaryMethod_h
00007 #define _TivEvolutionaryMethod_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "../methods/EvolutionaryMethodIteration.h"
00018
00019 #include "TextIterationVisualizer.h"
00020
00021
00022
00023
00024
00025 class TivEvolutionaryMethod
00026 : public TextIterationVisualizer
00027 {
00028 public:
00029
00030
00031
00034 TivEvolutionaryMethod(void);
00035
00038 ~TivEvolutionaryMethod(void);
00039
00040
00041
00042
00043
00044
00045
00046 virtual void Print(
00047 wxTextCtrl* pTargetCtrl,
00048 const IterationData& iteration,
00049 const FunctionBase& function,
00050 bool highlight) const;
00051
00052 static std::auto_ptr<const TextIterationVisualizer> Create();
00053
00054
00055
00056
00057 protected:
00058
00061 wxString PrintStartingStatistics
00062 ( wxTextCtrl* pTargetCtrl,
00063 const EvolutionaryMethodIteration& iteration,
00064 const FunctionBase& function,
00065 bool highlight) const;
00066
00069 wxString PrintChromosomeCounts
00070 ( wxTextCtrl* pTargetCtrl,
00071 const EvolutionaryMethodIteration& iteration,
00072 const FunctionBase& function,
00073 bool highlight) const;
00074
00077 wxString PrintEndStatistics
00078 ( wxTextCtrl* pTargetCtrl,
00079 const EvolutionaryMethodIteration& iteration,
00080 const FunctionBase& function,
00081 bool highlight) const;
00082
00083 private:
00084
00088 static void* mpRegistrationDummy;
00089
00090 };
00091
00092
00093
00094
00095
00096
00097
00098 #endif // _TivEvolutionaryMethod_h