Write bunch of java to solve a series of requirements and pass a series of tests to prove your code works the way it should.

WriteIFsTest.html 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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_181) on Sat Oct 20 13:16:39 EDT 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>WriteIFsTest</title>
  8. <meta name="date" content="2018-10-20">
  9. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
  10. <script type="text/javascript" src="script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="WriteIFsTest";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
  23. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ======== START OF CLASS DATA ======== -->
  33. <div class="header">
  34. <h2 title="Class WriteIFsTest" class="title">Class WriteIFsTest</h2>
  35. </div>
  36. <div class="contentContainer">
  37. <ul class="inheritance">
  38. <li>java.lang.Object</li>
  39. <li>
  40. <ul class="inheritance">
  41. <li>WriteIFs</li>
  42. <li>
  43. <ul class="inheritance">
  44. <li>WriteIFsTest</li>
  45. </ul>
  46. </li>
  47. </ul>
  48. </li>
  49. </ul>
  50. <div class="description">
  51. <ul class="blockList">
  52. <li class="blockList">
  53. <hr>
  54. <br>
  55. <pre>public class <span class="typeNameLabel">WriteIFsTest</span>
  56. extends WriteIFs</pre>
  57. <div class="block">The test class WriteIFsTest.</div>
  58. <dl>
  59. <dt><span class="simpleTagLabel">Version:</span></dt>
  60. <dd>1.2</dd>
  61. <dt><span class="simpleTagLabel">Author:</span></dt>
  62. <dd>kyounger</dd>
  63. </dl>
  64. </li>
  65. </ul>
  66. </div>
  67. <div class="summary">
  68. <ul class="blockList">
  69. <li class="blockList">
  70. <!-- =========== FIELD SUMMARY =========== -->
  71. <ul class="blockList">
  72. <li class="blockList"><a name="field.summary">
  73. <!-- -->
  74. </a>
  75. <h3>Field Summary</h3>
  76. <ul class="blockList">
  77. <li class="blockList"><a name="fields.inherited.from.class.WriteIFs">
  78. <!-- -->
  79. </a>
  80. <h3>Fields inherited from class&nbsp;WriteIFs</h3>
  81. <code>oo1, oo2, ss, tt_s, tt_t, x</code></li>
  82. </ul>
  83. </li>
  84. </ul>
  85. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  86. <ul class="blockList">
  87. <li class="blockList"><a name="constructor.summary">
  88. <!-- -->
  89. </a>
  90. <h3>Constructor Summary</h3>
  91. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  92. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  93. <tr>
  94. <th class="colOne" scope="col">Constructor and Description</th>
  95. </tr>
  96. <tr class="altColor">
  97. <td class="colOne"><code><span class="memberNameLink"><a href="WriteIFsTest.html#WriteIFsTest-int-int-int-int-int-java.lang.String-">WriteIFsTest</a></span>(int&nbsp;x,
  98. int&nbsp;tt_t,
  99. int&nbsp;tt_s,
  100. int&nbsp;oo1,
  101. int&nbsp;oo2,
  102. java.lang.String&nbsp;ss)</code>
  103. <div class="block">Default constructor for test class WriteIFsTest</div>
  104. </td>
  105. </tr>
  106. </table>
  107. </li>
  108. </ul>
  109. <!-- ========== METHOD SUMMARY =========== -->
  110. <ul class="blockList">
  111. <li class="blockList"><a name="method.summary">
  112. <!-- -->
  113. </a>
  114. <h3>Method Summary</h3>
  115. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  116. <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>
  117. <tr>
  118. <th class="colFirst" scope="col">Modifier and Type</th>
  119. <th class="colLast" scope="col">Method and Description</th>
  120. </tr>
  121. <tr id="i0" class="altColor">
  122. <td class="colFirst"><code>void</code></td>
  123. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#checkFuel1--">checkFuel1</a></span>()</code>&nbsp;</td>
  124. </tr>
  125. <tr id="i1" class="rowColor">
  126. <td class="colFirst"><code>void</code></td>
  127. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#checkFuel2--">checkFuel2</a></span>()</code>&nbsp;</td>
  128. </tr>
  129. <tr id="i2" class="altColor">
  130. <td class="colFirst"><code>void</code></td>
  131. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#fireplaceControl--">fireplaceControl</a></span>()</code>&nbsp;</td>
  132. </tr>
  133. <tr id="i3" class="rowColor">
  134. <td class="colFirst"><code>void</code></td>
  135. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#fireplaceControl1--">fireplaceControl1</a></span>()</code>&nbsp;</td>
  136. </tr>
  137. <tr id="i4" class="altColor">
  138. <td class="colFirst"><code>void</code></td>
  139. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#fireplaceControl2--">fireplaceControl2</a></span>()</code>&nbsp;</td>
  140. </tr>
  141. <tr id="i5" class="rowColor">
  142. <td class="colFirst"><code>void</code></td>
  143. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#PlayerDied--">PlayerDied</a></span>()</code>&nbsp;</td>
  144. </tr>
  145. <tr id="i6" class="altColor">
  146. <td class="colFirst"><code>void</code></td>
  147. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#setUp--">setUp</a></span>()</code>
  148. <div class="block">Sets up the test fixture.</div>
  149. </td>
  150. </tr>
  151. <tr id="i7" class="rowColor">
  152. <td class="colFirst"><code>void</code></td>
  153. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#tearDown--">tearDown</a></span>()</code>
  154. <div class="block">Tears down the test fixture.</div>
  155. </td>
  156. </tr>
  157. <tr id="i8" class="altColor">
  158. <td class="colFirst"><code>void</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#TestTherm1--">TestTherm1</a></span>()</code>&nbsp;</td>
  160. </tr>
  161. <tr id="i9" class="rowColor">
  162. <td class="colFirst"><code>void</code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="WriteIFsTest.html#thermoSTAT--">thermoSTAT</a></span>()</code>&nbsp;</td>
  164. </tr>
  165. </table>
  166. <ul class="blockList">
  167. <li class="blockList"><a name="methods.inherited.from.class.WriteIFs">
  168. <!-- -->
  169. </a>
  170. <h3>Methods inherited from class&nbsp;WriteIFs</h3>
  171. <code>checkFuel, fireplaceControl, isAlive, playerDied, thermoSTAT</code></li>
  172. </ul>
  173. <ul class="blockList">
  174. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  175. <!-- -->
  176. </a>
  177. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  178. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  179. </ul>
  180. </li>
  181. </ul>
  182. </li>
  183. </ul>
  184. </div>
  185. <div class="details">
  186. <ul class="blockList">
  187. <li class="blockList">
  188. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  189. <ul class="blockList">
  190. <li class="blockList"><a name="constructor.detail">
  191. <!-- -->
  192. </a>
  193. <h3>Constructor Detail</h3>
  194. <a name="WriteIFsTest-int-int-int-int-int-java.lang.String-">
  195. <!-- -->
  196. </a>
  197. <ul class="blockListLast">
  198. <li class="blockList">
  199. <h4>WriteIFsTest</h4>
  200. <pre>public&nbsp;WriteIFsTest(int&nbsp;x,
  201. int&nbsp;tt_t,
  202. int&nbsp;tt_s,
  203. int&nbsp;oo1,
  204. int&nbsp;oo2,
  205. java.lang.String&nbsp;ss)</pre>
  206. <div class="block">Default constructor for test class WriteIFsTest</div>
  207. </li>
  208. </ul>
  209. </li>
  210. </ul>
  211. <!-- ============ METHOD DETAIL ========== -->
  212. <ul class="blockList">
  213. <li class="blockList"><a name="method.detail">
  214. <!-- -->
  215. </a>
  216. <h3>Method Detail</h3>
  217. <a name="checkFuel1--">
  218. <!-- -->
  219. </a>
  220. <ul class="blockList">
  221. <li class="blockList">
  222. <h4>checkFuel1</h4>
  223. <pre>public&nbsp;void&nbsp;checkFuel1()</pre>
  224. </li>
  225. </ul>
  226. <a name="checkFuel2--">
  227. <!-- -->
  228. </a>
  229. <ul class="blockList">
  230. <li class="blockList">
  231. <h4>checkFuel2</h4>
  232. <pre>public&nbsp;void&nbsp;checkFuel2()</pre>
  233. </li>
  234. </ul>
  235. <a name="fireplaceControl--">
  236. <!-- -->
  237. </a>
  238. <ul class="blockList">
  239. <li class="blockList">
  240. <h4>fireplaceControl</h4>
  241. <pre>public&nbsp;void&nbsp;fireplaceControl()</pre>
  242. </li>
  243. </ul>
  244. <a name="fireplaceControl1--">
  245. <!-- -->
  246. </a>
  247. <ul class="blockList">
  248. <li class="blockList">
  249. <h4>fireplaceControl1</h4>
  250. <pre>public&nbsp;void&nbsp;fireplaceControl1()</pre>
  251. </li>
  252. </ul>
  253. <a name="fireplaceControl2--">
  254. <!-- -->
  255. </a>
  256. <ul class="blockList">
  257. <li class="blockList">
  258. <h4>fireplaceControl2</h4>
  259. <pre>public&nbsp;void&nbsp;fireplaceControl2()</pre>
  260. </li>
  261. </ul>
  262. <a name="PlayerDied--">
  263. <!-- -->
  264. </a>
  265. <ul class="blockList">
  266. <li class="blockList">
  267. <h4>PlayerDied</h4>
  268. <pre>public&nbsp;void&nbsp;PlayerDied()</pre>
  269. </li>
  270. </ul>
  271. <a name="setUp--">
  272. <!-- -->
  273. </a>
  274. <ul class="blockList">
  275. <li class="blockList">
  276. <h4>setUp</h4>
  277. <pre>public&nbsp;void&nbsp;setUp()</pre>
  278. <div class="block">Sets up the test fixture.
  279. Called before every test case method.</div>
  280. </li>
  281. </ul>
  282. <a name="tearDown--">
  283. <!-- -->
  284. </a>
  285. <ul class="blockList">
  286. <li class="blockList">
  287. <h4>tearDown</h4>
  288. <pre>public&nbsp;void&nbsp;tearDown()</pre>
  289. <div class="block">Tears down the test fixture.
  290. Called after every test case method.</div>
  291. </li>
  292. </ul>
  293. <a name="TestTherm1--">
  294. <!-- -->
  295. </a>
  296. <ul class="blockList">
  297. <li class="blockList">
  298. <h4>TestTherm1</h4>
  299. <pre>public&nbsp;void&nbsp;TestTherm1()</pre>
  300. </li>
  301. </ul>
  302. <a name="thermoSTAT--">
  303. <!-- -->
  304. </a>
  305. <ul class="blockListLast">
  306. <li class="blockList">
  307. <h4>thermoSTAT</h4>
  308. <pre>public&nbsp;void&nbsp;thermoSTAT()</pre>
  309. </li>
  310. </ul>
  311. </li>
  312. </ul>
  313. </li>
  314. </ul>
  315. </div>
  316. </div>
  317. <!-- ========= END OF CLASS DATA ========= -->
  318. </body>
  319. </html>