Adding Javadoc documentation.
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / javadoc / edu / uci / iotproject / comparison / seqalignment / SequenceAlignment.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!-- NewPage -->
3 <html lang="en">
4 <head>
5 <!-- Generated by javadoc (1.8.0_191) on Thu Mar 28 11:26:59 PDT 2019 -->
6 <title>SequenceAlignment</title>
7 <meta name="date" content="2019-03-28">
8 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
9 <script type="text/javascript" src="../../../../../script.js"></script>
10 </head>
11 <body>
12 <script type="text/javascript"><!--
13     try {
14         if (location.href.indexOf('is-external=true') == -1) {
15             parent.document.title="SequenceAlignment";
16         }
17     }
18     catch(err) {
19     }
20 //-->
21 var methods = {"i0":10};
22 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
23 var altColor = "altColor";
24 var rowColor = "rowColor";
25 var tableTab = "tableTab";
26 var activeTableTab = "activeTableTab";
27 </script>
28 <noscript>
29 <div>JavaScript is disabled on your browser.</div>
30 </noscript>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <div class="topNav"><a name="navbar.top">
33 <!--   -->
34 </a>
35 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36 <a name="navbar.top.firstrow">
37 <!--   -->
38 </a>
39 <ul class="navList" title="Navigation">
40 <li><a href="../../../../../overview-summary.html">Overview</a></li>
41 <li><a href="package-summary.html">Package</a></li>
42 <li class="navBarCell1Rev">Class</li>
43 <li><a href="package-tree.html">Tree</a></li>
44 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
45 <li><a href="../../../../../index-files/index-1.html">Index</a></li>
46 <li><a href="../../../../../help-doc.html">Help</a></li>
47 </ul>
48 </div>
49 <div class="subNav">
50 <ul class="navList">
51 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SampleIntegerAlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
52 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceExtraction.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
53 </ul>
54 <ul class="navList">
55 <li><a href="../../../../../index.html?edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" target="_top">Frames</a></li>
56 <li><a href="SequenceAlignment.html" target="_top">No&nbsp;Frames</a></li>
57 </ul>
58 <ul class="navList" id="allclasses_navbar_top">
59 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
60 </ul>
61 <div>
62 <script type="text/javascript"><!--
63   allClassesLink = document.getElementById("allclasses_navbar_top");
64   if(window==top) {
65     allClassesLink.style.display = "block";
66   }
67   else {
68     allClassesLink.style.display = "none";
69   }
70   //-->
71 </script>
72 </div>
73 <div>
74 <ul class="subNavList">
75 <li>Summary:&nbsp;</li>
76 <li>Nested&nbsp;|&nbsp;</li>
77 <li>Field&nbsp;|&nbsp;</li>
78 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
79 <li><a href="#method.summary">Method</a></li>
80 </ul>
81 <ul class="subNavList">
82 <li>Detail:&nbsp;</li>
83 <li>Field&nbsp;|&nbsp;</li>
84 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
85 <li><a href="#method.detail">Method</a></li>
86 </ul>
87 </div>
88 <a name="skip.navbar.top">
89 <!--   -->
90 </a></div>
91 <!-- ========= END OF TOP NAVBAR ========= -->
92 <!-- ======== START OF CLASS DATA ======== -->
93 <div class="header">
94 <div class="subTitle">edu.uci.iotproject.comparison.seqalignment</div>
95 <h2 title="Class SequenceAlignment" class="title">Class SequenceAlignment&lt;ALIGNMENT_UNIT&gt;</h2>
96 </div>
97 <div class="contentContainer">
98 <ul class="inheritance">
99 <li>java.lang.Object</li>
100 <li>
101 <ul class="inheritance">
102 <li>edu.uci.iotproject.comparison.seqalignment.SequenceAlignment&lt;ALIGNMENT_UNIT&gt;</li>
103 </ul>
104 </li>
105 </ul>
106 <div class="description">
107 <ul class="blockList">
108 <li class="blockList">
109 <dl>
110 <dt><span class="paramLabel">Type Parameters:</span></dt>
111 <dd><code>ALIGNMENT_UNIT</code> - The <em>unit of the alignment</em>, or, in other words, the <em>granularity</em> of the
112                         alignment. For example, for 'classical' string alignment (as in sequence alignment where we
113                         try to align two strings character by character -- the example most often used in books on
114                         algorithms) this would be a <code>Character</code>. As a second example, by specifying
115                         <code>String</code>, one can decrease the granularity so as to align <em>blocks</em> of characters
116                         (e.g., if one wants to align to two string arrays).</dd>
117 </dl>
118 <hr>
119 <br>
120 <pre>public class <span class="typeNameLabel">SequenceAlignment&lt;ALIGNMENT_UNIT&gt;</span>
121 extends java.lang.Object</pre>
122 <div class="block">A generic implementation of the sequence alignment algorithm given in Kleinberg's and Tardos' "Algorithm Design".
123  This implementation is the basic version. There is a more complex version which significantly reduces the space
124  complexity at a slight cost to time complexity.</div>
125 </li>
126 </ul>
127 </div>
128 <div class="summary">
129 <ul class="blockList">
130 <li class="blockList">
131 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
132 <ul class="blockList">
133 <li class="blockList"><a name="constructor.summary">
134 <!--   -->
135 </a>
136 <h3>Constructor Summary</h3>
137 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
138 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
139 <tr>
140 <th class="colOne" scope="col">Constructor and Description</th>
141 </tr>
142 <tr class="altColor">
143 <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html#SequenceAlignment-edu.uci.iotproject.comparison.seqalignment.AlignmentPricer-">SequenceAlignment</a></span>(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment">AlignmentPricer</a>&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>&gt;&nbsp;alignmentPricer)</code>
144 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>SequenceAlignment</code></a>.</div>
145 </td>
146 </tr>
147 </table>
148 </li>
149 </ul>
150 <!-- ========== METHOD SUMMARY =========== -->
151 <ul class="blockList">
152 <li class="blockList"><a name="method.summary">
153 <!--   -->
154 </a>
155 <h3>Method Summary</h3>
156 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
157 <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
158 <tr>
159 <th class="colFirst" scope="col">Modifier and Type</th>
160 <th class="colLast" scope="col">Method and Description</th>
161 </tr>
162 <tr id="i0" class="altColor">
163 <td class="colFirst"><code>int</code></td>
164 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html#calculateAlignment-ALIGNMENT_UNIT:A-ALIGNMENT_UNIT:A-">calculateAlignment</a></span>(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[]&nbsp;sequence1,
165                   <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[]&nbsp;sequence2)</code>
166 <div class="block">Calculates the cost of aligning <code>sequence1</code> with <code>sequence2</code>.</div>
167 </td>
168 </tr>
169 </table>
170 <ul class="blockList">
171 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
172 <!--   -->
173 </a>
174 <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
175 <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
176 </ul>
177 </li>
178 </ul>
179 </li>
180 </ul>
181 </div>
182 <div class="details">
183 <ul class="blockList">
184 <li class="blockList">
185 <!-- ========= CONSTRUCTOR DETAIL ======== -->
186 <ul class="blockList">
187 <li class="blockList"><a name="constructor.detail">
188 <!--   -->
189 </a>
190 <h3>Constructor Detail</h3>
191 <a name="SequenceAlignment-edu.uci.iotproject.comparison.seqalignment.AlignmentPricer-">
192 <!--   -->
193 </a>
194 <ul class="blockListLast">
195 <li class="blockList">
196 <h4>SequenceAlignment</h4>
197 <pre>public&nbsp;SequenceAlignment(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment">AlignmentPricer</a>&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>&gt;&nbsp;alignmentPricer)</pre>
198 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>SequenceAlignment</code></a>. The new instance relies on the provided <code>alignmentPricer</code> to
199  provide the cost of aligning two <code>ALIGNMENT_UNIT</code>s as well as the cost of aligning an
200  <code>ALIGNMENT_UNIT</code> with a gap.</div>
201 <dl>
202 <dt><span class="paramLabel">Parameters:</span></dt>
203 <dd><code>alignmentPricer</code> - An <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>AlignmentPricer</code></a> that provides the cost of aligning two <code>ALIGNMENT_UNIT</code>s
204                         with one another as well as the cost of aligning an <code>ALIGNMENT_UNIT</code> with a gap.</dd>
205 </dl>
206 </li>
207 </ul>
208 </li>
209 </ul>
210 <!-- ============ METHOD DETAIL ========== -->
211 <ul class="blockList">
212 <li class="blockList"><a name="method.detail">
213 <!--   -->
214 </a>
215 <h3>Method Detail</h3>
216 <a name="calculateAlignment-java.lang.Object:A-java.lang.Object:A-">
217 <!--   -->
218 </a><a name="calculateAlignment-ALIGNMENT_UNIT:A-ALIGNMENT_UNIT:A-">
219 <!--   -->
220 </a>
221 <ul class="blockListLast">
222 <li class="blockList">
223 <h4>calculateAlignment</h4>
224 <pre>public&nbsp;int&nbsp;calculateAlignment(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[]&nbsp;sequence1,
225                               <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="type parameter in SequenceAlignment">ALIGNMENT_UNIT</a>[]&nbsp;sequence2)</pre>
226 <div class="block">Calculates the cost of aligning <code>sequence1</code> with <code>sequence2</code>.</div>
227 <dl>
228 <dt><span class="paramLabel">Parameters:</span></dt>
229 <dd><code>sequence1</code> - A sequence that is to be aligned with <code>sequence2</code>.</dd>
230 <dd><code>sequence2</code> - A sequence that is to be aligned with <code>sequence1</code>.</dd>
231 <dt><span class="returnLabel">Returns:</span></dt>
232 <dd>The cost of aligning <code>sequence1</code> with <code>sequence2</code>.</dd>
233 </dl>
234 </li>
235 </ul>
236 </li>
237 </ul>
238 </li>
239 </ul>
240 </div>
241 </div>
242 <!-- ========= END OF CLASS DATA ========= -->
243 <!-- ======= START OF BOTTOM NAVBAR ====== -->
244 <div class="bottomNav"><a name="navbar.bottom">
245 <!--   -->
246 </a>
247 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
248 <a name="navbar.bottom.firstrow">
249 <!--   -->
250 </a>
251 <ul class="navList" title="Navigation">
252 <li><a href="../../../../../overview-summary.html">Overview</a></li>
253 <li><a href="package-summary.html">Package</a></li>
254 <li class="navBarCell1Rev">Class</li>
255 <li><a href="package-tree.html">Tree</a></li>
256 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
257 <li><a href="../../../../../index-files/index-1.html">Index</a></li>
258 <li><a href="../../../../../help-doc.html">Help</a></li>
259 </ul>
260 </div>
261 <div class="subNav">
262 <ul class="navList">
263 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SampleIntegerAlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
264 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceExtraction.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
265 </ul>
266 <ul class="navList">
267 <li><a href="../../../../../index.html?edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" target="_top">Frames</a></li>
268 <li><a href="SequenceAlignment.html" target="_top">No&nbsp;Frames</a></li>
269 </ul>
270 <ul class="navList" id="allclasses_navbar_bottom">
271 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
272 </ul>
273 <div>
274 <script type="text/javascript"><!--
275   allClassesLink = document.getElementById("allclasses_navbar_bottom");
276   if(window==top) {
277     allClassesLink.style.display = "block";
278   }
279   else {
280     allClassesLink.style.display = "none";
281   }
282   //-->
283 </script>
284 </div>
285 <div>
286 <ul class="subNavList">
287 <li>Summary:&nbsp;</li>
288 <li>Nested&nbsp;|&nbsp;</li>
289 <li>Field&nbsp;|&nbsp;</li>
290 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
291 <li><a href="#method.summary">Method</a></li>
292 </ul>
293 <ul class="subNavList">
294 <li>Detail:&nbsp;</li>
295 <li>Field&nbsp;|&nbsp;</li>
296 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
297 <li><a href="#method.detail">Method</a></li>
298 </ul>
299 </div>
300 <a name="skip.navbar.bottom">
301 <!--   -->
302 </a></div>
303 <!-- ======== END OF BOTTOM NAVBAR ======= -->
304 </body>
305 </html>