00001 #if !defined(AFX_PARAMETER_H__1F448E46_482F_4100_97E4_9A28DCF398AE__INCLUDED_) 00002 #define AFX_PARAMETER_H__1F448E46_482F_4100_97E4_9A28DCF398AE__INCLUDED_ 00003 00004 #if _MSC_VER > 1000 00005 #pragma once 00006 #endif // _MSC_VER > 1000 00007 // Parameter.h : header file 00008 // 00009 00011 // CParameter view 00012 00013 #include "Distribution.h" 00014 00017 class CParameter : public CObject 00018 { 00019 public: 00020 CParameter(); 00021 virtual ~CParameter(); 00022 CParameter(const CParameter& param); 00023 00024 DECLARE_SERIAL(CParameter) 00025 00026 // Attributes 00027 public: 00028 00029 // Operations 00030 public: 00031 void Serialize(CArchive& ar); 00032 00033 CParameter& operator=(const CParameter ¶m); 00034 00035 // Implementation 00036 public: 00037 double GenKeepingCoV(double newLocation); 00038 double Generate(); 00039 void setID(WORD id); 00040 WORD getID() const; 00041 void setDistribution(CDistribution* dist); 00042 CDistribution* getDistribution(); 00043 00044 #ifdef _DEBUG 00045 virtual void AssertValid() const; 00046 virtual void Dump(CDumpContext& dc) const; 00047 #endif 00048 00049 private: 00050 void SetDefaultParams(); 00051 CDistribution m_Distribution; 00052 WORD m_ID; 00053 }; 00054 00056 00057 //{{AFX_INSERT_LOCATION}} 00058 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00059 00060 #endif // !defined(AFX_IDMPARAMETER_H__1F448E46_482F_4100_97E4_9A28DCF398AE__INCLUDED_)