1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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>
12 <script type="text/javascript"><!--
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="AlignmentPricer";
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";
29 <div>JavaScript is disabled on your browser.</div>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <div class="topNav"><a name="navbar.top">
35 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36 <a name="navbar.top.firstrow">
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>
51 <li>Prev 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 Class</span></a></li>
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 Frames</a></li>
58 <ul class="navList" id="allclasses_navbar_top">
59 <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
62 <script type="text/javascript"><!--
63 allClassesLink = document.getElementById("allclasses_navbar_top");
65 allClassesLink.style.display = "block";
68 allClassesLink.style.display = "none";
74 <ul class="subNavList">
75 <li>Summary: </li>
76 <li>Nested | </li>
77 <li>Field | </li>
78 <li><a href="#constructor.summary">Constr</a> | </li>
79 <li><a href="#method.summary">Method</a></li>
81 <ul class="subNavList">
82 <li>Detail: </li>
83 <li>Field | </li>
84 <li><a href="#constructor.detail">Constr</a> | </li>
85 <li><a href="#method.detail">Method</a></li>
88 <a name="skip.navbar.top">
91 <!-- ========= END OF TOP NAVBAR ========= -->
92 <!-- ======== START OF CLASS DATA ======== -->
94 <div class="subTitle">edu.uci.iotproject.comparison.seqalignment</div>
95 <h2 title="Class AlignmentPricer" class="title">Class AlignmentPricer<T></h2>
97 <div class="contentContainer">
98 <ul class="inheritance">
99 <li>java.lang.Object</li>
101 <ul class="inheritance">
102 <li>edu.uci.iotproject.comparison.seqalignment.AlignmentPricer<T></li>
106 <div class="description">
107 <ul class="blockList">
108 <li class="blockList">
110 <dt><span class="paramLabel">Type Parameters:</span></dt>
111 <dd><code>T</code> - The type of the elements that are being aligned.</dd>
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>
119 <pre>public class <span class="typeNameLabel">AlignmentPricer<T></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>
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">
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"> </span></caption>
138 <th class="colOne" scope="col">Constructor and Description</th>
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<<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>> alignmentCostFunction,
142 java.util.function.ToIntFunction<<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>> 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>
149 <!-- ========== METHOD SUMMARY =========== -->
150 <ul class="blockList">
151 <li class="blockList"><a name="method.summary">
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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
158 <th class="colFirst" scope="col">Modifier and Type</th>
159 <th class="colLast" scope="col">Method and Description</th>
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> item1,
164 <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a> item2)</code>
165 <div class="block">Calculate the cost of aligning <code>item1</code> with <code>item2</code>.</div>
169 <ul class="blockList">
170 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
173 <h3>Methods inherited from class java.lang.Object</h3>
174 <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
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">
189 <h3>Constructor Detail</h3>
190 <a name="AlignmentPricer-java.util.function.ToIntBiFunction-java.util.function.ToIntFunction-">
193 <ul class="blockListLast">
194 <li class="blockList">
195 <h4>AlignmentPricer</h4>
196 <pre>public AlignmentPricer(java.util.function.ToIntBiFunction<<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>> alignmentCostFunction,
197 java.util.function.ToIntFunction<<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a>> 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>
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>
210 <!-- ============ METHOD DETAIL ========== -->
211 <ul class="blockList">
212 <li class="blockList"><a name="method.detail">
215 <h3>Method Detail</h3>
216 <a name="alignmentCost-java.lang.Object-java.lang.Object-">
218 </a><a name="alignmentCost-T-T-">
221 <ul class="blockListLast">
222 <li class="blockList">
223 <h4>alignmentCost</h4>
224 <pre>public int alignmentCost(<a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a> item1,
225 <a href="../../../../../edu/uci/iotproject/comparison/seqalignment/AlignmentPricer.html" title="type parameter in AlignmentPricer">T</a> 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>
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>
246 <!-- ========= END OF CLASS DATA ========= -->
247 <!-- ======= START OF BOTTOM NAVBAR ====== -->
248 <div class="bottomNav"><a name="navbar.bottom">
251 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
252 <a name="navbar.bottom.firstrow">
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>
267 <li>Prev 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 Class</span></a></li>
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 Frames</a></li>
274 <ul class="navList" id="allclasses_navbar_bottom">
275 <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
278 <script type="text/javascript"><!--
279 allClassesLink = document.getElementById("allclasses_navbar_bottom");
281 allClassesLink.style.display = "block";
284 allClassesLink.style.display = "none";
290 <ul class="subNavList">
291 <li>Summary: </li>
292 <li>Nested | </li>
293 <li>Field | </li>
294 <li><a href="#constructor.summary">Constr</a> | </li>
295 <li><a href="#method.summary">Method</a></li>
297 <ul class="subNavList">
298 <li>Detail: </li>
299 <li>Field | </li>
300 <li><a href="#constructor.detail">Constr</a> | </li>
301 <li><a href="#method.detail">Method</a></li>
304 <a name="skip.navbar.bottom">
307 <!-- ======== END OF BOTTOM NAVBAR ======= -->