-
Notifications
You must be signed in to change notification settings - Fork 0
/
mismatch.cpp
84 lines (68 loc) · 1.4 KB
/
mismatch.cpp
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
// $Author: benine $
// $Date$
// $Log$
// Contains the Mismatch class for afin
#include "mismatch.hpp"
// Mismatch Class Code
Mismatch::Mismatch(){
score = 1.0;
length = 0;
index_i = 0;
index_j = 0;
end_i = 0;
end_j = 0;
}
Mismatch::Mismatch( double score, int length, int index_i, int index_j, int end_i, int end_j ): score(score), length(length), index_i(index_i), index_j(index_j), end_i(end_i), end_j(end_j){}
// set mismatch score
void Mismatch::set_score( double score ){
this->score = score;
}
// set length
void Mismatch::set_length( int length ){
this->length = length;
}
// set index_i
void Mismatch::set_index_i( int index ){
index_i = index;
}
// set index_j
void Mismatch::set_index_j( int index ){
index_j = index;
}
// set index
void Mismatch::set_indices( int index_i, int index_j ){
this->index_i = index_i;
this->index_j = index_j;
}
// set end_i
void Mismatch::set_end_i( int end_i ){
this->end_i = end_i;
}
// set end_j
void Mismatch::set_end_j( int end_j ){
this->end_j = end_j;
}
// return mismatch score
double Mismatch::get_score(){
return score;
}
// return length
int Mismatch::get_length(){
return length;
}
// return index i
int Mismatch::get_index_i(){
return index_i;
}
// return index j
int Mismatch::get_index_j(){
return index_j;
}
//return end_i
int Mismatch::get_end_i(){
return end_i;
}
//return end_j
int Mismatch::get_end_j(){
return end_j;
}