#if !defined(AFX_SIMDIALOG_H__F4CEEE02_4D6D_4FEF_8757_65ADC6334E28__INCLUDED_) #define AFX_SIMDIALOG_H__F4CEEE02_4D6D_4FEF_8757_65ADC6334E28__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // SimDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CSimDialog dialog class CSimDialog : public CDialog // this class is used for getting simulation profile items from user. { // Construction public: //CObArray* codes; //CObArray* RXs; //CObArray* TXs; //CMedium* medium; BYTE k; // "k" is the maximum callision parameter when the acc and ccc are equal . BYTE MaxCodeSetSize; // the maximum size of code-set that can be drived from "Johnson Bound theorem" CSim* sim; // the pointer that points to CSimDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CSimDialog) enum { IDD = IDD_SimDialog }; CButton BInitMedium; // to disable or enable initialize medium Button. CEdit EditNumTx; // number of TX Editbox variable to disable or enable . CEdit EditNumRx; // number of RX Editbox variable to disable or enable . CListBox ListBox; // the list Box variable to access all functions and properties of a list box to show generated OOCs. CButton BInitTx; // to disable or enable initialize Transmitter(s) button CButton BInitRx; // to disable or enable "Initialize Receivers(s) Button". BYTE NumTx; // number of transmitters variable gets data from numTx editBox . BYTE NumRx; // number of Receivers variable gets data from numRx editBox . BYTE acc; // auto-correlation coustraint BYTE ccc; // cross-correlation coustraint int w; // weight of the OOcs. OOC= optical orthogonal code CString ListCode; // ? int F; // length of the OOcs. BYTE SubChipPerChip; // Minimum time unit that our discrete system uses. int start; // start time of simulation . int stop; // stop time of simulation . double calibration; // calibration of the FIR matrix of the simulation moliam. //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSimDialog) protected: virtual void DoDataExchange (CDataExchange* pDX );// DDX/DDV support 5:30 // Implementation protected: // Generated message map functions //{{AFX_MSG(CSimDialog) virtual BOOL OnInitDialog();// to get info from the "Csim* sim " object and set the Edit Boxes of its Dinlag . afx_msg void OnInitTx();//to initialize the Tx(s) when OOCs generates. afx_msg void OnInitRx();// to initialize the Rx(s) when OOCs generates. afx_msg void OnGenCode();// to generate OOCs from some parametes that user has typed like F,W and K afx_msg void OnChangeESubChip();// called when user changes its EditBox. afx_msg void OnChangeENumTx();// called when user changes ENumTx EditBox. afx_msg void OnChangeENumRx();// called when user changes ENumRx EditBox. afx_msg void OnChangeELoOOC();// called when user select another OOC from its ComboBox. afx_msg void OnChangeEcw();// called when user changes the code Weight EditBox. afx_msg void OnChangeEacc();// called when user changes the auts-correlation coustraint EditBox . afx_msg void OnChangeEccc();// called when user changes the cross-correlation coustraint EditBox. afx_msg void OnInitMedium();// to initialize the medium of current simulation object . //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SIMDIALOG_H__F4CEEE02_4D6D_4FEF_8757_65ADC6334E28__INCLUDED_)