-
Notifications
You must be signed in to change notification settings - Fork 0
/
Receptor.h
77 lines (58 loc) · 1.79 KB
/
Receptor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Receptor.h: interface for the CReceptor class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RECEPTOR_H__4A5C35BC_3ED7_428E_80C8_6F8163520AB4__INCLUDED_)
#define AFX_RECEPTOR_H__4A5C35BC_3ED7_428E_80C8_6F8163520AB4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef stack<int> intStack;
class CReceptor
{
int m_R_index;
int m_MyRaft;
int m_index_in_profileVec;
int MSD;
R_Type m_type;
CString m_name;
bool m_use;
double D;
double m_P_enter_raft;
double m_P_leave_raft;
public:
bool m_moved;
CPoint CurrentLocation;
CPoint InitLocation;
CPoint A_B_SM_Indexes;
intStack SMStack;
intStack RStack;
CString GetName() { return m_name;}
void SetName(CString type) {m_name = type;}
R_Type GetType() { return m_type;}
void SetType(R_Type type) {m_type = type;}
void SetCRaft(int in) { m_MyRaft=in;}
int GetCRaft() { return m_MyRaft;}
void SetMSD(int in) { MSD=in;}
int GetMSD() { return MSD;}
double GetD() { return D;}
void Set_D(double dif_coef) {D = dif_coef;}
double Get_P_enter_raft() { return m_P_enter_raft;}
void Set_P_enter_raft(double P_enter_raft) {m_P_enter_raft = P_enter_raft;}
double Get_P_leave_raft() { return m_P_leave_raft;}
void Set_P_leave_raft(double P_leave_raft) {m_P_leave_raft = P_leave_raft;}
int CalculateDistance();
int Get_R_index() { return m_R_index;}
void Set_R_index(int index) {m_R_index = index;}
bool IsInUse(){return m_use;}
void SetUsage(bool usage){m_use = usage;}
void EraseFromList();
int Get_A_B_SM_IndexesOccup();
bool Move(Kind_of_Move, bool);
void GetInRaft(int) ;
void GetOutRaft();
void Clear();
void ChangeType(R_Type);
CReceptor(int, R_Type);
virtual ~CReceptor();
};
#endif // !defined(AFX_RECEPTOR_H__4A5C35BC_3ED7_428E_80C8_6F8163520AB4__INCLUDED_)