another early Lab using BlueJ.

index-all.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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_144) on Fri Apr 27 10:24:20 EDT 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Index (people2)</title>
  8. <meta name="date" content="2018-04-27">
  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="Index (people2)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. </script>
  23. <noscript>
  24. <div>JavaScript is disabled on your browser.</div>
  25. </noscript>
  26. <!-- ========= START OF TOP NAVBAR ======= -->
  27. <div class="topNav"><a name="navbar.top">
  28. <!-- -->
  29. </a>
  30. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  31. <a name="navbar.top.firstrow">
  32. <!-- -->
  33. </a>
  34. <ul class="navList" title="Navigation">
  35. <li><a href="package-summary.html">Package</a></li>
  36. <li>Class</li>
  37. <li><a href="overview-tree.html">Tree</a></li>
  38. <li class="navBarCell1Rev">Index</li>
  39. <li><a href="help-doc.html">Help</a></li>
  40. </ul>
  41. </div>
  42. <div class="subNav">
  43. <ul class="navList">
  44. <li>Prev</li>
  45. <li>Next</li>
  46. </ul>
  47. <ul class="navList">
  48. <li><a href="index.html?index-all.html" target="_top">Frames</a></li>
  49. <li><a href="index-all.html" target="_top">No&nbsp;Frames</a></li>
  50. </ul>
  51. <ul class="navList" id="allclasses_navbar_top">
  52. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  53. </ul>
  54. <div>
  55. <script type="text/javascript"><!--
  56. allClassesLink = document.getElementById("allclasses_navbar_top");
  57. if(window==top) {
  58. allClassesLink.style.display = "block";
  59. }
  60. else {
  61. allClassesLink.style.display = "none";
  62. }
  63. //-->
  64. </script>
  65. </div>
  66. <a name="skip.navbar.top">
  67. <!-- -->
  68. </a></div>
  69. <!-- ========= END OF TOP NAVBAR ========= -->
  70. <div class="contentContainer"><a href="#I:A">A</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;<a name="I:A">
  71. <!-- -->
  72. </a>
  73. <h2 class="title">A</h2>
  74. <dl>
  75. <dt><span class="memberNameLink"><a href="Database.html#addPerson-Person-">addPerson(Person)</a></span> - Method in class <a href="Database.html" title="class in &lt;Unnamed&gt;">Database</a></dt>
  76. <dd>
  77. <div class="block">Add a person to the database.</div>
  78. </dd>
  79. <dt><a href="Address.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Address</span></a> - Class in <a href="package-summary.html">&lt;Unnamed&gt;</a></dt>
  80. <dd>
  81. <div class="block">Class Address - used to store address details for a post address</div>
  82. </dd>
  83. <dt><span class="memberNameLink"><a href="Address.html#Address-java.lang.String-java.lang.String-java.lang.String-">Address(String, String, String)</a></span> - Constructor for class <a href="Address.html" title="class in &lt;Unnamed&gt;">Address</a></dt>
  84. <dd>
  85. <div class="block">Construct an Address without country</div>
  86. </dd>
  87. <dt><span class="memberNameLink"><a href="Address.html#Address-java.lang.String-java.lang.String-java.lang.String-java.lang.String-">Address(String, String, String, String)</a></span> - Constructor for class <a href="Address.html" title="class in &lt;Unnamed&gt;">Address</a></dt>
  88. <dd>
  89. <div class="block">Construct an Address with full details</div>
  90. </dd>
  91. </dl>
  92. <a name="I:D">
  93. <!-- -->
  94. </a>
  95. <h2 class="title">D</h2>
  96. <dl>
  97. <dt><a href="Database.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Database</span></a> - Class in <a href="package-summary.html">&lt;Unnamed&gt;</a></dt>
  98. <dd>
  99. <div class="block">A very simple database of people in a university.</div>
  100. </dd>
  101. <dt><span class="memberNameLink"><a href="Database.html#Database--">Database()</a></span> - Constructor for class <a href="Database.html" title="class in &lt;Unnamed&gt;">Database</a></dt>
  102. <dd>
  103. <div class="block">Create a new, empty person database.</div>
  104. </dd>
  105. </dl>
  106. <a name="I:G">
  107. <!-- -->
  108. </a>
  109. <h2 class="title">G</h2>
  110. <dl>
  111. <dt><span class="memberNameLink"><a href="Person.html#getAddress--">getAddress()</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  112. <dd>
  113. <div class="block">Return the address of this person.</div>
  114. </dd>
  115. <dt><span class="memberNameLink"><a href="Person.html#getName--">getName()</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  116. <dd>
  117. <div class="block">Return the name of this person.</div>
  118. </dd>
  119. <dt><span class="memberNameLink"><a href="Staff.html#getRoom--">getRoom()</a></span> - Method in class <a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a></dt>
  120. <dd>
  121. <div class="block">Return the room number of this person.</div>
  122. </dd>
  123. <dt><span class="memberNameLink"><a href="Student.html#getStudentID--">getStudentID()</a></span> - Method in class <a href="Student.html" title="class in &lt;Unnamed&gt;">Student</a></dt>
  124. <dd>
  125. <div class="block">Return the stident ID of this student.</div>
  126. </dd>
  127. <dt><span class="memberNameLink"><a href="Person.html#getYearOfBirth--">getYearOfBirth()</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  128. <dd>
  129. <div class="block">Return the birth year of this person.</div>
  130. </dd>
  131. </dl>
  132. <a name="I:L">
  133. <!-- -->
  134. </a>
  135. <h2 class="title">L</h2>
  136. <dl>
  137. <dt><span class="memberNameLink"><a href="Database.html#listAll--">listAll()</a></span> - Method in class <a href="Database.html" title="class in &lt;Unnamed&gt;">Database</a></dt>
  138. <dd>
  139. <div class="block">List all the persons currently in the database on standard out.</div>
  140. </dd>
  141. </dl>
  142. <a name="I:P">
  143. <!-- -->
  144. </a>
  145. <h2 class="title">P</h2>
  146. <dl>
  147. <dt><a href="Person.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Person</span></a> - Class in <a href="package-summary.html">&lt;Unnamed&gt;</a></dt>
  148. <dd>
  149. <div class="block">A person class for a simple BlueJ demo program.</div>
  150. </dd>
  151. <dt><span class="memberNameLink"><a href="Person.html#Person-java.lang.String-int-">Person(String, int)</a></span> - Constructor for class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  152. <dd>
  153. <div class="block">Create a person with given name and age.</div>
  154. </dd>
  155. </dl>
  156. <a name="I:S">
  157. <!-- -->
  158. </a>
  159. <h2 class="title">S</h2>
  160. <dl>
  161. <dt><span class="memberNameLink"><a href="Person.html#setAddress-java.lang.String-java.lang.String-java.lang.String-">setAddress(String, String, String)</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  162. <dd>
  163. <div class="block">Set a new address for this person.</div>
  164. </dd>
  165. <dt><span class="memberNameLink"><a href="Person.html#setName-java.lang.String-">setName(String)</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  166. <dd>
  167. <div class="block">Set a new name for this person.</div>
  168. </dd>
  169. <dt><span class="memberNameLink"><a href="Staff.html#setRoom-java.lang.String-">setRoom(String)</a></span> - Method in class <a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a></dt>
  170. <dd>
  171. <div class="block">Set a new room number for this person.</div>
  172. </dd>
  173. <dt><span class="memberNameLink"><a href="Person.html#setYearOfBirth-int-">setYearOfBirth(int)</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  174. <dd>
  175. <div class="block">Set a new birth year for this person.</div>
  176. </dd>
  177. <dt><a href="Staff.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Staff</span></a> - Class in <a href="package-summary.html">&lt;Unnamed&gt;</a></dt>
  178. <dd>
  179. <div class="block">A class representing staff members for a simple BlueJ demo program.</div>
  180. </dd>
  181. <dt><span class="memberNameLink"><a href="Staff.html#Staff--">Staff()</a></span> - Constructor for class <a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a></dt>
  182. <dd>
  183. <div class="block">Create a staff member with default settings for detail information.</div>
  184. </dd>
  185. <dt><span class="memberNameLink"><a href="Staff.html#Staff-java.lang.String-int-java.lang.String-">Staff(String, int, String)</a></span> - Constructor for class <a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a></dt>
  186. <dd>
  187. <div class="block">Create a staff member with given name, year of birth and room
  188. number.</div>
  189. </dd>
  190. <dt><a href="Student.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Student</span></a> - Class in <a href="package-summary.html">&lt;Unnamed&gt;</a></dt>
  191. <dd>
  192. <div class="block">A class representing students for a simple BlueJ demo program.</div>
  193. </dd>
  194. <dt><span class="memberNameLink"><a href="Student.html#Student--">Student()</a></span> - Constructor for class <a href="Student.html" title="class in &lt;Unnamed&gt;">Student</a></dt>
  195. <dd>
  196. <div class="block">Create a student with default settings for detail information.</div>
  197. </dd>
  198. <dt><span class="memberNameLink"><a href="Student.html#Student-java.lang.String-int-java.lang.String-">Student(String, int, String)</a></span> - Constructor for class <a href="Student.html" title="class in &lt;Unnamed&gt;">Student</a></dt>
  199. <dd>
  200. <div class="block">Create a student with given name, year of birth and student ID</div>
  201. </dd>
  202. </dl>
  203. <a name="I:T">
  204. <!-- -->
  205. </a>
  206. <h2 class="title">T</h2>
  207. <dl>
  208. <dt><span class="memberNameLink"><a href="Address.html#toString--">toString()</a></span> - Method in class <a href="Address.html" title="class in &lt;Unnamed&gt;">Address</a></dt>
  209. <dd>
  210. <div class="block">Return a string representation of this object.</div>
  211. </dd>
  212. <dt><span class="memberNameLink"><a href="Person.html#toString--">toString()</a></span> - Method in class <a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a></dt>
  213. <dd>
  214. <div class="block">Return a string representation of this object.</div>
  215. </dd>
  216. <dt><span class="memberNameLink"><a href="Staff.html#toString--">toString()</a></span> - Method in class <a href="Staff.html" title="class in &lt;Unnamed&gt;">Staff</a></dt>
  217. <dd>
  218. <div class="block">Return a string representation of this object.</div>
  219. </dd>
  220. <dt><span class="memberNameLink"><a href="Student.html#toString--">toString()</a></span> - Method in class <a href="Student.html" title="class in &lt;Unnamed&gt;">Student</a></dt>
  221. <dd>
  222. <div class="block">Return a string representation of this object.</div>
  223. </dd>
  224. </dl>
  225. <a href="#I:A">A</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;</div>
  226. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  227. <div class="bottomNav"><a name="navbar.bottom">
  228. <!-- -->
  229. </a>
  230. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  231. <a name="navbar.bottom.firstrow">
  232. <!-- -->
  233. </a>
  234. <ul class="navList" title="Navigation">
  235. <li><a href="package-summary.html">Package</a></li>
  236. <li>Class</li>
  237. <li><a href="overview-tree.html">Tree</a></li>
  238. <li class="navBarCell1Rev">Index</li>
  239. <li><a href="help-doc.html">Help</a></li>
  240. </ul>
  241. </div>
  242. <div class="subNav">
  243. <ul class="navList">
  244. <li>Prev</li>
  245. <li>Next</li>
  246. </ul>
  247. <ul class="navList">
  248. <li><a href="index.html?index-all.html" target="_top">Frames</a></li>
  249. <li><a href="index-all.html" target="_top">No&nbsp;Frames</a></li>
  250. </ul>
  251. <ul class="navList" id="allclasses_navbar_bottom">
  252. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  253. </ul>
  254. <div>
  255. <script type="text/javascript"><!--
  256. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  257. if(window==top) {
  258. allClassesLink.style.display = "block";
  259. }
  260. else {
  261. allClassesLink.style.display = "none";
  262. }
  263. //-->
  264. </script>
  265. </div>
  266. <a name="skip.navbar.bottom">
  267. <!-- -->
  268. </a></div>
  269. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  270. </body>
  271. </html>