SquaredCustomValueCondition.h

00001 
00007 #ifndef _SquaredCustomValueCondition_h
00008 #define _SquaredCustomValueCondition_h
00009 
00010 // SYSTEM INCLUDES
00011 //
00012 
00013 // PROJECT INCLUDES
00014 //
00015 
00016 // LOCAL INCLUDES
00017 //
00018 #include "StandardStopCondition.h"
00019 
00020 // FORWARD REFERENCES
00021 //
00022 
00023 
00024 class SquaredCustomValueCondition
00025     : public StandardStopCondition
00026 {
00027 public:
00028 // LIFECYCLE
00029 
00032     SquaredCustomValueCondition(void);
00033 
00040     SquaredCustomValueCondition(const wxString& name,
00041                                 bool  metWhenGreater = false);
00042 
00049     SquaredCustomValueCondition(const DoubleParameter& epsilon,
00050                                 bool  metWhenGreater = false);
00051 
00056     SquaredCustomValueCondition(const SquaredCustomValueCondition& from);
00057 
00058 
00061     ~SquaredCustomValueCondition(void);
00062 
00063 
00064 // OPERATORS
00065 
00066 // OPERATIONS
00067 
00070     virtual std::auto_ptr<StopConditionBase>    Clone() const;
00071 
00072 // ACCESS
00073 
00076     virtual wxString        ToString() const;
00077 
00078 // INQUIRY
00079 
00084     virtual bool        IsMet(const ColumnVector&   previousPoint,
00085                               const ColumnVector&   lastPoint,
00086                               double                previousValue,
00087                               double                lastValue,
00088                               double                customValue) const;
00089 
00094     virtual bool        IsMet(const ColumnVector&   previousPoint,
00095                               const ColumnVector&   lastPoint,
00096                               double                previousValue,
00097                               const FunctionBase&   function,
00098                               double                customValue) const;
00099 
00104     virtual bool        IsMet(const ColumnVector&   previousPoint,
00105                               const ColumnVector&   lastPoint,
00106                               const FunctionBase&   function,
00107                               double                customValue) const;
00108 
00109 protected:
00110 private:
00111 bool mMetWhenGreater;   
00112 
00113 
00114 };
00115 
00116 // INLINE METHODS
00117 //
00118 
00119 // EXTERNAL REFERENCES
00120 //
00121 
00122 #endif  // _SquaredCustomValueCondition_h

Wygenerowano Fri Sep 29 21:04:48 2006 dla EduOptim2 programem  doxygen 1.4.6