Adding Javadoc documentation.
[pingpong.git] / Code / Projects / PacketLevelSignatureExtractor / javadoc / edu / uci / iotproject / comparison / seqalignment / AlignmentPricer.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>AlignmentPricer</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="AlignmentPricer";
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>Prev&nbsp;Class</li>
52 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/ExtractedSequence.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/AlignmentPricer.html" target="_top">Frames</a></li>
56 <li><a href="AlignmentPricer.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 AlignmentPricer" class="title">Class AlignmentPricer&lt;T&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.AlignmentPricer&lt;T&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>T</code> - The type of the elements that are being aligned.</dd>
112 </dl>
113 <dl>
114 <dt>Direct Known Subclasses:</dt>
115 <dd><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SampleIntegerAlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment">SampleIntegerAlignmentPricer</a></dd>
116 </dl>
117 <hr>
118 <br>
119 <pre>public class <span class="typeNameLabel">AlignmentPricer&lt;T&gt;</span>
120 extends java.lang.Object</pre>
121 <div class="block">Provides a generic implementation for the calculation of the cost of aligning two elements of a sequence as part of
122  the sequence alignment algorithm (the algorithm is implemented in <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/SequenceAlignment.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>SequenceAlignment</code></a>).</div>
123 </li>
124 </ul>
125 </div>
126 <div class="summary">
127 <ul class="blockList">
128 <li class="blockList">
129 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
130 <ul class="blockList">
131 <li class="blockList"><a name="constructor.summary">
132 <!--   -->
133 </a>
134 <h3>Constructor Summary</h3>
135 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
136 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
137 <tr>
138 <th class="colOne" scope="col">Constructor and Description</th>
139 </tr>
140 <tr class="altColor">
141 <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html#AlignmentPricer-java.util.function.ToIntBiFunction-java.util.function.ToIntFunction-">AlignmentPricer</a></span>(java.util.function.ToIntBiFunction&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>,<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&gt;&nbsp;alignmentCostFunction,
142                java.util.function.ToIntFunction&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&gt;&nbsp;gapCostFunction)</code>
143 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>AlignmentPricer</code></a>.</div>
144 </td>
145 </tr>
146 </table>
147 </li>
148 </ul>
149 <!-- ========== METHOD SUMMARY =========== -->
150 <ul class="blockList">
151 <li class="blockList"><a name="method.summary">
152 <!--   -->
153 </a>
154 <h3>Method Summary</h3>
155 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
156 <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>
157 <tr>
158 <th class="colFirst" scope="col">Modifier and Type</th>
159 <th class="colLast" scope="col">Method and Description</th>
160 </tr>
161 <tr id="i0" class="altColor">
162 <td class="colFirst"><code>int</code></td>
163 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html#alignmentCost-T-T-">alignmentCost</a></span>(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&nbsp;item1,
164              <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&nbsp;item2)</code>
165 <div class="block">Calculate the cost of aligning <code>item1</code> with <code>item2</code>.</div>
166 </td>
167 </tr>
168 </table>
169 <ul class="blockList">
170 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
171 <!--   -->
172 </a>
173 <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
174 <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
175 </ul>
176 </li>
177 </ul>
178 </li>
179 </ul>
180 </div>
181 <div class="details">
182 <ul class="blockList">
183 <li class="blockList">
184 <!-- ========= CONSTRUCTOR DETAIL ======== -->
185 <ul class="blockList">
186 <li class="blockList"><a name="constructor.detail">
187 <!--   -->
188 </a>
189 <h3>Constructor Detail</h3>
190 <a name="AlignmentPricer-java.util.function.ToIntBiFunction-java.util.function.ToIntFunction-">
191 <!--   -->
192 </a>
193 <ul class="blockListLast">
194 <li class="blockList">
195 <h4>AlignmentPricer</h4>
196 <pre>public&nbsp;AlignmentPricer(java.util.function.ToIntBiFunction&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>,<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&gt;&nbsp;alignmentCostFunction,
197                        java.util.function.ToIntFunction&lt;<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&gt;&nbsp;gapCostFunction)</pre>
198 <div class="block">Constructs a new <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="class in edu.uci.iotproject.comparison.seqalignment"><code>AlignmentPricer</code></a>.</div>
199 <dl>
200 <dt><span class="paramLabel">Parameters:</span></dt>
201 <dd><code>alignmentCostFunction</code> - A function that specifies the cost of aligning a <code>T</code> with some other <code>T</code>
202                               (e.g., based on the values of the properties of the two instances).</dd>
203 <dd><code>gapCostFunction</code> - A function that specifies the cost of aligning a <code>T</code> with a gap. Note that the
204                         function is free to specify <em>different</em> gap costs for different <code>T</code>s.</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="alignmentCost-java.lang.Object-java.lang.Object-">
217 <!--   -->
218 </a><a name="alignmentCost-T-T-">
219 <!--   -->
220 </a>
221 <ul class="blockListLast">
222 <li class="blockList">
223 <h4>alignmentCost</h4>
224 <pre>public&nbsp;int&nbsp;alignmentCost(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&nbsp;item1,
225                          <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>&nbsp;item2)</pre>
226 <div class="block">Calculate the cost of aligning <code>item1</code> with <code>item2</code>. If either of the two arguments is set to
227  <code>null</code>, the cost of aligning the other argument with a gap will be returned. Note that both arguments
228  cannot be <code>null</code> at the same time as that translates to aligning a gap with a gap, which is pointless.</div>
229 <dl>
230 <dt><span class="paramLabel">Parameters:</span></dt>
231 <dd><code>item1</code> - The first of the two aligned objects. Set to <code>null</code> to calculate the cost of aligning
232               <code>item2</code> with a gap.</dd>
233 <dd><code>item2</code> - The second of the two aligned objects. Set to <code>null</code> to calculate the cost of aligning
234               <code>item2</code> with a gap.</dd>
235 <dt><span class="returnLabel">Returns:</span></dt>
236 <dd>The cost of aligning <code>item1</code> with <code>item2</code>.</dd>
237 </dl>
238 </li>
239 </ul>
240 </li>
241 </ul>
242 </li>
243 </ul>
244 </div>
245 </div>
246 <!-- ========= END OF CLASS DATA ========= -->
247 <!-- ======= START OF BOTTOM NAVBAR ====== -->
248 <div class="bottomNav"><a name="navbar.bottom">
249 <!--   -->
250 </a>
251 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
252 <a name="navbar.bottom.firstrow">
253 <!--   -->
254 </a>
255 <ul class="navList" title="Navigation">
256 <li><a href="../../../../../overview-summary.html">Overview</a></li>
257 <li><a href="package-summary.html">Package</a></li>
258 <li class="navBarCell1Rev">Class</li>
259 <li><a href="package-tree.html">Tree</a></li>
260 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
261 <li><a href="../../../../../index-files/index-1.html">Index</a></li>
262 <li><a href="../../../../../help-doc.html">Help</a></li>
263 </ul>
264 </div>
265 <div class="subNav">
266 <ul class="navList">
267 <li>Prev&nbsp;Class</li>
268 <li><a href="../../../../../edu/uci/iotproject/comparison/seqalignment/ExtractedSequence.html" title="class in edu.uci.iotproject.comparison.seqalignment"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
269 </ul>
270 <ul class="navList">
271 <li><a href="../../../../../index.html?edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" target="_top">Frames</a></li>
272 <li><a href="AlignmentPricer.html" target="_top">No&nbsp;Frames</a></li>
273 </ul>
274 <ul class="navList" id="allclasses_navbar_bottom">
275 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
276 </ul>
277 <div>
278 <script type="text/javascript"><!--
279   allClassesLink = document.getElementById("allclasses_navbar_bottom");
280   if(window==top) {
281     allClassesLink.style.display = "block";
282   }
283   else {
284     allClassesLink.style.display = "none";
285   }
286   //-->
287 </script>
288 </div>
289 <div>
290 <ul class="subNavList">
291 <li>Summary:&nbsp;</li>
292 <li>Nested&nbsp;|&nbsp;</li>
293 <li>Field&nbsp;|&nbsp;</li>
294 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
295 <li><a href="#method.summary">Method</a></li>
296 </ul>
297 <ul class="subNavList">
298 <li>Detail:&nbsp;</li>
299 <li>Field&nbsp;|&nbsp;</li>
300 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
301 <li><a href="#method.detail">Method</a></li>
302 </ul>
303 </div>
304 <a name="skip.navbar.bottom">
305 <!--   -->
306 </a></div>
307 <!-- ======== END OF BOTTOM NAVBAR ======= -->
308 </body>
309 </html>