forked from Roy-lab/merlin-p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetaMove.C
128 lines (101 loc) · 1.3 KB
/
MetaMove.C
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//#include "Potential.H"
#include "MetaMove.H"
MetaMove::MetaMove()
{
}
MetaMove::~MetaMove()
{
conditionSet.clear();
pll.clear();
}
int
MetaMove::setScoreImprovement(double aVal)
{
scoreDelta=aVal;
return 0;
}
int
MetaMove::setSrcMBScore(double aScore)
{
mbscore=aScore;
return 0;
}
int
MetaMove::setTargetMBScore(double aScore)
{
targetMBScore=aScore;
return 0;
}
int
MetaMove::setSrcVertex(int vid)
{
src=vid;
return 0;
}
int
MetaMove::setTargetVertex(int vid)
{
target=vid;
return 0;
}
int
MetaMove::setConditionSet(INTINTMAP& vSet)
{
for(INTINTMAP_ITER vIter=vSet.begin();vIter!=vSet.end();vIter++)
{
conditionSet[vIter->first]=vIter->second;
}
return 0;
}
int
MetaMove::setConditionSetInd(int aind)
{
conditionSetInd=aind;
return 0;
}
int
MetaMove::setDestPot(Potential* apot)
{
destPot=apot;
return 0;
}
int
MetaMove::getSrcVertex()
{
return src;
}
int
MetaMove::getTargetVertex()
{
return target;
}
INTINTMAP&
MetaMove::getConditionSet()
{
return conditionSet;
}
int
MetaMove::getConditionSetInd()
{
return conditionSetInd;
}
double
MetaMove::getSrcMBScore()
{
return mbscore;
}
double
MetaMove::getTargetMBScore()
{
return targetMBScore;
}
double
MetaMove::getScoreImprovement()
{
return scoreDelta;
}
Potential*
MetaMove::getDestPot()
{
return destPot;
}