00001
00007 #ifndef _InitialRangeValidator_h
00008 #define _InitialRangeValidator_h
00009
00010
00011
00012
00013
00014
00015 #include <wx/validate.h>
00016
00017
00018
00019 #include "../DoubleParameter.h"
00020 #include "../methods/EvolutionaryMethod.h"
00021
00022
00023
00024
00025 class InitialRangeValidator
00026 : public wxValidator
00027 {
00028 public:
00029
00030
00033 InitialRangeValidator(EvolutionaryMethod* pMethod,
00034 ColumnVector& rRangeMinBounds,
00035 ColumnVector& rRangeMaxBounds);
00036
00037
00042 InitialRangeValidator(const InitialRangeValidator& from);
00043
00046 ~InitialRangeValidator(void);
00047
00048
00049
00050
00051
00052
00055 virtual wxObject* Clone() const;
00056
00059 virtual bool TransferToWindow();
00060
00063 virtual bool TransferFromWindow();
00064
00069 virtual bool Validate(wxWindow* pParent);
00070
00071
00072
00073
00074 protected:
00075
00076 EvolutionaryMethod* mpMethod;
00077 ColumnVector& mrRangeMinBounds;
00078 ColumnVector& mrRangeMaxBounds;
00079
00080 private:
00081 };
00082
00083
00084
00085
00086
00087
00088
00089 #endif // _InitialRangeValidator_h