// ramzor3View.h : interface of the CRamzor3View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RAMZOR3VIEW_H__92758AC6_D989_11D3_95FD_81D56C25FC3B__INCLUDED_)
#define AFX_RAMZOR3VIEW_H__92758AC6_D989_11D3_95FD_81D56C25FC3B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CRamzor3View : public CFormView
{
protected: // create from serialization only
	CRamzor3View();
	DECLARE_DYNCREATE(CRamzor3View)

public:
	//{{AFX_DATA(CRamzor3View)
	enum { IDD = IDD_RAMZOR3_FORM };
	CComboBox	m_cboLane1Dep;
	CComboBox	m_cboLane1Arr;
	CComboBox	m_cboLane8Dep;
	CComboBox	m_cboLane7Dep;
	CComboBox	m_cboLane6Dep;
	CComboBox	m_cboLane5Dep;
	CComboBox	m_cboLane4Dep;
	CComboBox	m_cboLane3Dep;
	CComboBox	m_cboLane2Dep;
	CComboBox	m_cboLane8Arr;
	CComboBox	m_cboLane7Arr;
	CComboBox	m_cboLane6Arr;
	CComboBox	m_cboLane5Arr;
	CComboBox	m_cboLane4Arr;
	CComboBox	m_cboLane3Arr;
	CComboBox	m_cboLane2Arr;
	int		m_nLearningDays;
	//}}AFX_DATA

// Attributes
public:
	CRamzor3Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRamzor3View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRamzor3View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRamzor3View)
	afx_msg void OnSelchangeCboLane1Arr5();
	afx_msg void OnBtnDefaults();
	afx_msg void OnLearn();
	afx_msg void OnSimulate();
	afx_msg void OnBtnView();
	afx_msg void OnBtnReset();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool m_bFirstTime;
	CPtrArray CombosArrivalArray;
	CPtrArray CombosDepartureArray;
	CString GetCurrentSetting();
	void LoadDefaults(CString& strLastJuncSettings, CString& strDefaultTrafficParams);
	void RunSimulation(int nNumOfSecs, bool bIsSaving);
	void UpdateRegistry();
public:
	void UpdateSimParams();
	void setArrivalArrAt(int ind, int val);
	void setDepartureArrAt(int ind, int val);
};

#ifndef _DEBUG  // debug version in ramzor3View.cpp
inline CRamzor3Doc* CRamzor3View::GetDocument()
   { return (CRamzor3Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RAMZOR3VIEW_H__92758AC6_D989_11D3_95FD_81D56C25FC3B__INCLUDED_)
