Skip to content
Browse files

Updating documentation for release 0.2

  • Loading branch information...
1 parent 6ddac2c commit ed51533d72fdbf0695a09eb85dda3f08c8b9f238 @sgriffinusa sgriffinusa committed
Showing with 6,994 additions and 1,725 deletions.
  1. +5 −5 docs/html/_abstract_menu_item_8java_source.html
  2. +136 −124 docs/html/_bdf_file_8java_source.html
  3. +178 −0 docs/html/_bdf_reader_8java_source.html
  4. +32 −26 docs/html/_bdf_writer_8java_source.html
  5. +146 −0 docs/html/_branch_item_8java_source.html
  6. +7 −7 docs/html/_builder_8java_source.html
  7. +167 −0 docs/html/_builder_factory_8java_source.html
  8. +205 −0 docs/html/_comparison_menu_8java_source.html
  9. +179 −0 docs/html/_conversion_menu_8java_source.html
  10. +44 −10 docs/html/_converter_8java_source.html
  11. +152 −0 docs/html/_crc16_generator_8java_source.html
  12. +217 −0 docs/html/_crc32_generator_8java_source.html
  13. +322 −0 docs/html/_crc64_generator_8java_source.html
  14. +226 −0 docs/html/_crc_calculator_8java_source.html
  15. +133 −0 docs/html/_crc_generator_8java_source.html
  16. +145 −0 docs/html/_crc_generator_factory_8java_source.html
  17. +263 −0 docs/html/_crc_validator_8java_source.html
  18. +424 −198 docs/html/_data_validator_8java_source.html
  19. +154 −0 docs/html/_error_printer_8java_source.html
  20. +6 −6 docs/html/_exit_item_8java_source.html
  21. +58 −149 docs/html/_file_definition_builder_8java_source.html
  22. +237 −0 docs/html/_file_definition_dao_8java_source.html
  23. +35 −27 docs/html/_initial_menu_8java_source.html
  24. +34 −134 docs/html/_integrity_definition_builder_8java_source.html
  25. +244 −0 docs/html/_integrity_definition_dao_8java_source.html
  26. +4 −4 docs/html/_menu_8java_source.html
  27. +6 −6 docs/html/_menu_item_8java_source.html
  28. +22 −17 docs/html/_menu_runner_8java_source.html
  29. +44 −25 docs/html/_save_item_8java_source.html
  30. +332 −0 docs/html/_sdf_checker_8java_source.html
  31. +170 −0 docs/html/_sdf_read_item_8java_source.html
  32. +148 −0 docs/html/_sdf_reader_8java_source.html
  33. +7 −7 docs/html/_sdf_writer_8java_source.html
  34. +182 −263 docs/html/_software_definition_file_builder_8java_source.html
  35. +330 −0 docs/html/_software_definition_file_dao_8java_source.html
  36. +455 −0 docs/html/_software_definition_file_validator_8java_source.html
  37. +36 −116 docs/html/_software_description_builder_8java_source.html
  38. +218 −0 docs/html/_software_description_dao_8java_source.html
  39. +57 −135 docs/html/_target_hardware_definition_builder_8java_source.html
  40. +224 −0 docs/html/_target_hardware_definition_dao_8java_source.html
  41. +185 −0 docs/html/_xdf_reader_8java_source.html
  42. +69 −44 docs/html/_xdf_writer_8java_source.html
  43. +4 −4 docs/html/_xml_file_menu_8java_source.html
  44. +5 −5 docs/html/_xml_formatter_8java_source.html
  45. +27 −11 docs/html/annotated.html
  46. +26 −10 docs/html/annotated.js
  47. BIN docs/html/bc_s.png
  48. +3 −2 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file-members.html
  49. +7 −9 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html
  50. +1 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.js
  51. +131 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_factory-members.html
  52. +144 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_factory.html
  53. +5 −20 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_file_definition_builder-members.html
  54. +11 −47 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_file_definition_builder.html
  55. +3 −18 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_file_definition_builder.js
  56. +4 −14 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_integrity_definition_builder-members.html
  57. +8 −30 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_integrity_definition_builder.html
  58. +2 −12 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_integrity_definition_builder.js
  59. +5 −24 ...ml/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder-members.html
  60. +12 −70 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html
  61. +3 −22 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.js
  62. +4 −17 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_description_builder-members.html
  63. +9 −36 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_description_builder.html
  64. +2 −15 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_description_builder.js
  65. +4 −15 .../classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_target_hardware_definition_builder-members.html
  66. +8 −28 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_target_hardware_definition_builder.html
  67. +2 −13 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_target_hardware_definition_builder.js
  68. +132 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator-members.html
  69. +170 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator.html
  70. +4 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator.js
  71. +9 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator__coll__graph.dot
  72. +1 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator__coll__graph.md5
  73. +9 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator__inherit__graph.dot
  74. +1 −0 docs/html/classedu_1_1cmu_1_1sv_1_1arinc838_1_1crc_1_1_crc16_generator__inherit__graph.md5
Sorry, we could not display the entire diff because too many files (323) changed.
View
10 docs/html/_abstract_menu_item_8java_source.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>ARINC 838: /Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/ui/item/AbstractMenuItem.java Source File</title>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/item/AbstractMenuItem.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
@@ -33,7 +33,7 @@
<td style="padding-left: 0.5em;">
<div id="projectname">ARINC 838
- &#160;<span id="projectnumber">0.1</span>
+ &#160;<span id="projectnumber">0.2</span>
</div>
<div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
</td>
@@ -108,7 +108,7 @@
<div class="header">
<div class="headertitle">
-<div class="title">/Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/ui/item/AbstractMenuItem.java</div> </div>
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/item/AbstractMenuItem.java</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
@@ -131,7 +131,7 @@
<a name="l00018"></a>00018
<a name="l00019"></a>00019 <span class="keyword">private</span> String prompt;
<a name="l00020"></a>00020
-<a name="l00021"></a>00021 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a>(String prompt) {
+<a name="l00021"></a>00021 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a>(String prompt) {
<a name="l00022"></a>00022 this.prompt = prompt;
<a name="l00023"></a>00023 }
<a name="l00024"></a>00024
@@ -163,7 +163,7 @@
<ul>
<li class="navelem"><b>AbstractMenuItem.java</b> </li>
- <li class="footer">Generated on Sat Mar 3 2012 13:00:59 for ARINC 838 by
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:37 for ARINC 838 by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
</ul>
View
260 docs/html/_bdf_file_8java_source.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>ARINC 838: /Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/binary/BdfFile.java Source File</title>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/binary/BdfFile.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
@@ -33,7 +33,7 @@
<td style="padding-left: 0.5em;">
<div id="projectname">ARINC 838
- &#160;<span id="projectnumber">0.1</span>
+ &#160;<span id="projectnumber">0.2</span>
</div>
<div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
</td>
@@ -108,7 +108,7 @@
<div class="header">
<div class="headertitle">
-<div class="title">/Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/binary/BdfFile.java</div> </div>
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/binary/BdfFile.java</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
@@ -127,135 +127,147 @@
<a name="l00014"></a>00014 <span class="keyword">import</span> java.io.IOException;
<a name="l00015"></a>00015 <span class="keyword">import</span> java.io.RandomAccessFile;
<a name="l00016"></a>00016
-<a name="l00017"></a>00017 <span class="keyword">import</span> edu.cmu.sv.arinc838.validation.DataValidator;
+<a name="l00017"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">00017</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> <span class="keyword">extends</span> RandomAccessFile {
<a name="l00018"></a>00018
-<a name="l00019"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">00019</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> <span class="keyword">extends</span> RandomAccessFile {
-<a name="l00020"></a>00020
-<a name="l00021"></a>00021 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> UINT32_LENGTH = 4;
-<a name="l00022"></a>00022 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> BOOLEAN_LENGTH = 1;
-<a name="l00023"></a>00023 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> FILE_FORMAT_VERSION_LOCATION = 4;
-<a name="l00024"></a>00024 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> SOFTWARE_DESCRIPTION_POINTER_LOCATION = 8;
-<a name="l00025"></a>00025 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> TARGET_DEFINITIONS_POINTER_LOCATION = 12;
-<a name="l00026"></a>00026 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> FILE_DEFINITIONS_POINTER_LOCATION = 16;
-<a name="l00027"></a>00027 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> SDF_INTEGRITY_POINTER_LOCATION = 20;
-<a name="l00028"></a>00028 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> LSP_INTEGRITY_POINTER_LOCATION = 24;
-<a name="l00029"></a>00029 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">long</span> PLACEHOLDER = 0;
-<a name="l00030"></a>00030
-<a name="l00031"></a>00031 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a>(File file) <span class="keywordflow">throws</span> FileNotFoundException {
-<a name="l00032"></a>00032 super(file, <span class="stringliteral">&quot;rw&quot;</span>);
-<a name="l00033"></a>00033 }
-<a name="l00034"></a>00034
-<a name="l00035"></a>00035 <span class="keyword">public</span> <span class="keywordtype">void</span> writeUint32(<span class="keywordtype">long</span> value) <span class="keywordflow">throws</span> IOException {
-<a name="l00036"></a>00036 super.writeInt((<span class="keywordtype">int</span>) <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_data_validator.html">DataValidator</a>.<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_data_validator.html#aaabc891f0cc828059c629fd39654079c">validateUint32</a>(value));
-<a name="l00037"></a>00037 }
-<a name="l00038"></a>00038
-<a name="l00039"></a>00039 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">long</span> asUint32(<span class="keywordtype">int</span> value) {
-<a name="l00040"></a>00040 <span class="keywordflow">return</span> value &amp; 0xffffffffL;
-<a name="l00041"></a>00041 }
-<a name="l00042"></a>00042
-<a name="l00043"></a>00043 <span class="keyword">public</span> <span class="keywordtype">void</span> writeStr64k(String value) <span class="keywordflow">throws</span> IOException {
-<a name="l00044"></a>00044 super.writeUTF(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_data_validator.html">DataValidator</a>.<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_data_validator.html#a0e8cdfa40fcdf8682817944875e5bd51">validateStr64kBinary</a>(value));
-<a name="l00045"></a>00045 }
-<a name="l00046"></a>00046
-<a name="l00052"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html#aa5e88a8b7875f01bc31cb72c71e52d88">00052</a> <span class="keyword">public</span> String <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html#aa5e88a8b7875f01bc31cb72c71e52d88">readStr64k</a>() throws IOException {
-<a name="l00053"></a>00053 <span class="keywordflow">return</span> readUTF();
-<a name="l00054"></a>00054 }
-<a name="l00055"></a>00055
-<a name="l00056"></a>00056 <span class="keyword">public</span> <span class="keywordtype">long</span> readUint32() throws IOException {
-<a name="l00057"></a>00057 <span class="keywordflow">return</span> asUint32(super.readInt());
-<a name="l00058"></a>00058 }
-<a name="l00059"></a>00059
-<a name="l00060"></a>00060 <span class="keyword">public</span> <span class="keywordtype">void</span> writeSoftwareDescriptionPointer() throws IOException {
-<a name="l00061"></a>00061 writePointer(SOFTWARE_DESCRIPTION_POINTER_LOCATION);
-<a name="l00062"></a>00062 }
-<a name="l00063"></a>00063
-<a name="l00064"></a>00064 <span class="keyword">public</span> <span class="keywordtype">void</span> writeTargetDefinitionsPointer() throws IOException {
-<a name="l00065"></a>00065 writePointer(TARGET_DEFINITIONS_POINTER_LOCATION);
-<a name="l00066"></a>00066 }
-<a name="l00067"></a>00067
-<a name="l00068"></a>00068 <span class="keyword">public</span> <span class="keywordtype">void</span> writeFileDefinitionsPointer() throws IOException {
-<a name="l00069"></a>00069 writePointer(FILE_DEFINITIONS_POINTER_LOCATION);
-<a name="l00070"></a>00070 }
-<a name="l00071"></a>00071
-<a name="l00072"></a>00072 <span class="keyword">public</span> <span class="keywordtype">void</span> writeSdfIntegrityDefinitionPointer() throws IOException {
-<a name="l00073"></a>00073 writePointer(SDF_INTEGRITY_POINTER_LOCATION);
-<a name="l00074"></a>00074 }
-<a name="l00075"></a>00075
-<a name="l00076"></a>00076 <span class="keyword">public</span> <span class="keywordtype">void</span> writeLspIntegrityDefinitionPointer() throws IOException {
-<a name="l00077"></a>00077 writePointer(LSP_INTEGRITY_POINTER_LOCATION);
-<a name="l00078"></a>00078 }
-<a name="l00079"></a>00079
-<a name="l00080"></a>00080 <span class="keyword">private</span> <span class="keywordtype">void</span> writePointer(<span class="keywordtype">int</span> pointerLocation) <span class="keywordflow">throws</span> IOException {
-<a name="l00081"></a>00081 <span class="keywordtype">long</span> currentLocation = super.getFilePointer();
-<a name="l00082"></a>00082 super.seek(pointerLocation);
-<a name="l00083"></a>00083 writeUint32(currentLocation);
-<a name="l00084"></a>00084 super.seek(currentLocation);
-<a name="l00085"></a>00085 }
-<a name="l00086"></a>00086
-<a name="l00087"></a>00087 <span class="keyword">public</span> <span class="keywordtype">void</span> writeHexbin32(byte[] hexBin) <span class="keywordflow">throws</span> IOException {
-<a name="l00088"></a>00088 byte[] hexBinToWrite = DataValidator.validateHexbin32(hexBin);
-<a name="l00089"></a>00089
-<a name="l00090"></a>00090 write(hexBinToWrite);
-<a name="l00091"></a>00091 }
-<a name="l00092"></a>00092
-<a name="l00093"></a>00093 <span class="keyword">public</span> <span class="keywordtype">void</span> writeHexbin64k(byte[] hexBin) <span class="keywordflow">throws</span> IOException {
-<a name="l00094"></a>00094 byte[] hexBinToWrite = DataValidator.validateHexbin64k(hexBin);
-<a name="l00095"></a>00095
-<a name="l00096"></a>00096 writeShort(hexBinToWrite.length);
-<a name="l00097"></a>00097 write(hexBinToWrite);
-<a name="l00098"></a>00098 }
-<a name="l00099"></a>00099
-<a name="l00100"></a>00100 <span class="keyword">public</span> <span class="keywordtype">void</span> writePlaceholder() throws IOException {
-<a name="l00101"></a>00101 writeUint32(0);
-<a name="l00102"></a>00102 }
-<a name="l00103"></a>00103
-<a name="l00104"></a>00104 <span class="keyword">public</span> byte[] readHexbin32() throws IOException {
-<a name="l00105"></a>00105 byte[] hexbin = <span class="keyword">new</span> byte[4];
+<a name="l00019"></a>00019 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> UINT32_LENGTH = 4;
+<a name="l00020"></a>00020 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> BOOLEAN_LENGTH = 1;
+<a name="l00021"></a>00021 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> FILE_FORMAT_VERSION_LOCATION = 4;
+<a name="l00022"></a>00022 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> SOFTWARE_DESCRIPTION_POINTER_LOCATION = 8;
+<a name="l00023"></a>00023 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> TARGET_DEFINITIONS_POINTER_LOCATION = 12;
+<a name="l00024"></a>00024 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> FILE_DEFINITIONS_POINTER_LOCATION = 16;
+<a name="l00025"></a>00025 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> SDF_INTEGRITY_POINTER_LOCATION = 20;
+<a name="l00026"></a>00026 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> LSP_INTEGRITY_POINTER_LOCATION = 24;
+<a name="l00027"></a>00027 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">long</span> PLACEHOLDER = 0;
+<a name="l00028"></a>00028
+<a name="l00029"></a>00029 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a>(File file) <span class="keywordflow">throws</span> FileNotFoundException {
+<a name="l00030"></a>00030 super(file, <span class="stringliteral">&quot;rw&quot;</span>);
+<a name="l00031"></a>00031 }
+<a name="l00032"></a>00032
+<a name="l00033"></a>00033 <span class="keyword">public</span> <span class="keywordtype">void</span> writeUint32(<span class="keywordtype">long</span> value) <span class="keywordflow">throws</span> IOException {
+<a name="l00034"></a>00034 super.writeInt((<span class="keywordtype">int</span>)value);
+<a name="l00035"></a>00035 }
+<a name="l00036"></a>00036
+<a name="l00037"></a>00037 <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">long</span> asUint32(<span class="keywordtype">int</span> value) {
+<a name="l00038"></a>00038 <span class="keywordflow">return</span> value &amp; 0xffffffffL;
+<a name="l00039"></a>00039 }
+<a name="l00040"></a>00040
+<a name="l00041"></a>00041 <span class="keyword">public</span> <span class="keywordtype">void</span> writeStr64k(String value) <span class="keywordflow">throws</span> IOException {
+<a name="l00042"></a>00042 super.writeUTF(value);
+<a name="l00043"></a>00043 }
+<a name="l00044"></a>00044
+<a name="l00050"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html#aa5e88a8b7875f01bc31cb72c71e52d88">00050</a> <span class="keyword">public</span> String <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html#aa5e88a8b7875f01bc31cb72c71e52d88">readStr64k</a>() throws IOException {
+<a name="l00051"></a>00051 <span class="keywordflow">return</span> readUTF();
+<a name="l00052"></a>00052 }
+<a name="l00053"></a>00053
+<a name="l00054"></a>00054 <span class="keyword">public</span> <span class="keywordtype">long</span> readUint32() throws IOException {
+<a name="l00055"></a>00055 <span class="keywordflow">return</span> asUint32(super.readInt());
+<a name="l00056"></a>00056 }
+<a name="l00057"></a>00057
+<a name="l00058"></a>00058 <span class="keyword">public</span> <span class="keywordtype">void</span> writeSoftwareDescriptionPointer() throws IOException {
+<a name="l00059"></a>00059 writePointer(SOFTWARE_DESCRIPTION_POINTER_LOCATION);
+<a name="l00060"></a>00060 }
+<a name="l00061"></a>00061
+<a name="l00062"></a>00062 <span class="keyword">public</span> <span class="keywordtype">void</span> writeTargetDefinitionsPointer() throws IOException {
+<a name="l00063"></a>00063 writePointer(TARGET_DEFINITIONS_POINTER_LOCATION);
+<a name="l00064"></a>00064 }
+<a name="l00065"></a>00065
+<a name="l00066"></a>00066 <span class="keyword">public</span> <span class="keywordtype">void</span> writeFileDefinitionsPointer() throws IOException {
+<a name="l00067"></a>00067 writePointer(FILE_DEFINITIONS_POINTER_LOCATION);
+<a name="l00068"></a>00068 }
+<a name="l00069"></a>00069
+<a name="l00070"></a>00070 <span class="keyword">public</span> <span class="keywordtype">void</span> writeSdfIntegrityDefinitionPointer() throws IOException {
+<a name="l00071"></a>00071 writePointer(SDF_INTEGRITY_POINTER_LOCATION);
+<a name="l00072"></a>00072 }
+<a name="l00073"></a>00073
+<a name="l00074"></a>00074 <span class="keyword">public</span> <span class="keywordtype">void</span> writeLspIntegrityDefinitionPointer() throws IOException {
+<a name="l00075"></a>00075 writePointer(LSP_INTEGRITY_POINTER_LOCATION);
+<a name="l00076"></a>00076 }
+<a name="l00077"></a>00077
+<a name="l00078"></a>00078 <span class="keyword">private</span> <span class="keywordtype">void</span> writePointer(<span class="keywordtype">int</span> pointerLocation) <span class="keywordflow">throws</span> IOException {
+<a name="l00079"></a>00079 <span class="keywordtype">long</span> currentLocation = super.getFilePointer();
+<a name="l00080"></a>00080 super.seek(pointerLocation);
+<a name="l00081"></a>00081 writeUint32(currentLocation);
+<a name="l00082"></a>00082 super.seek(currentLocation);
+<a name="l00083"></a>00083 }
+<a name="l00084"></a>00084
+<a name="l00085"></a>00085 <span class="keyword">public</span> <span class="keywordtype">void</span> writeHexbin32(byte[] hexBin) <span class="keywordflow">throws</span> IOException {
+<a name="l00086"></a>00086 byte[] hexBinToWrite = hexBin;
+<a name="l00087"></a>00087
+<a name="l00088"></a>00088 write(hexBinToWrite);
+<a name="l00089"></a>00089 }
+<a name="l00090"></a>00090
+<a name="l00091"></a>00091 <span class="keyword">public</span> <span class="keywordtype">void</span> writeHexbin64k(byte[] hexBin) <span class="keywordflow">throws</span> IOException {
+<a name="l00092"></a>00092 byte[] hexBinToWrite = hexBin;
+<a name="l00093"></a>00093
+<a name="l00094"></a>00094 writeShort(hexBinToWrite.length);
+<a name="l00095"></a>00095 write(hexBinToWrite);
+<a name="l00096"></a>00096 }
+<a name="l00097"></a>00097
+<a name="l00098"></a>00098 <span class="keyword">public</span> <span class="keywordtype">void</span> writePlaceholder() throws IOException {
+<a name="l00099"></a>00099 writeUint32(0);
+<a name="l00100"></a>00100 }
+<a name="l00101"></a>00101
+<a name="l00102"></a>00102 <span class="keyword">public</span> byte[] readHexbin32() throws IOException {
+<a name="l00103"></a>00103 byte[] hexbin = <span class="keyword">new</span> byte[4];
+<a name="l00104"></a>00104
+<a name="l00105"></a>00105 this.read(hexbin);
<a name="l00106"></a>00106
-<a name="l00107"></a>00107 this.read(hexbin);
-<a name="l00108"></a>00108
-<a name="l00109"></a>00109 <span class="keywordflow">return</span> hexbin;
-<a name="l00110"></a>00110 }
-<a name="l00111"></a>00111
-<a name="l00112"></a>00112 <span class="keyword">public</span> byte[] readHexbin64k() throws IOException {
-<a name="l00113"></a>00113 <span class="keywordtype">short</span> length = readShort();
-<a name="l00114"></a>00114 byte[] data = <span class="keyword">new</span> byte[length];
-<a name="l00115"></a>00115 read(data);
-<a name="l00116"></a>00116 <span class="keywordflow">return</span> data;
-<a name="l00117"></a>00117 }
-<a name="l00118"></a>00118
-<a name="l00119"></a>00119 <span class="keyword">public</span> <span class="keywordtype">long</span> readSoftwareDescriptionPointer() throws IOException {
-<a name="l00120"></a>00120 <span class="keywordflow">return</span> readPointer(SOFTWARE_DESCRIPTION_POINTER_LOCATION);
-<a name="l00121"></a>00121 }
-<a name="l00122"></a>00122
-<a name="l00123"></a>00123 <span class="keyword">public</span> <span class="keywordtype">long</span> readTargetDefinitionsPointer() throws IOException {
-<a name="l00124"></a>00124 <span class="keywordflow">return</span> readPointer(TARGET_DEFINITIONS_POINTER_LOCATION);
-<a name="l00125"></a>00125 }
-<a name="l00126"></a>00126
-<a name="l00127"></a>00127 <span class="keyword">public</span> <span class="keywordtype">long</span> readFileDefinitionsPointer() throws IOException {
-<a name="l00128"></a>00128 <span class="keywordflow">return</span> readPointer(FILE_DEFINITIONS_POINTER_LOCATION);
-<a name="l00129"></a>00129 }
-<a name="l00130"></a>00130
-<a name="l00131"></a>00131 <span class="keyword">public</span> <span class="keywordtype">long</span> readSdfIntegrityDefinitionPointer() throws IOException {
-<a name="l00132"></a>00132 <span class="keywordflow">return</span> readPointer(SDF_INTEGRITY_POINTER_LOCATION);
-<a name="l00133"></a>00133 }
-<a name="l00134"></a>00134
-<a name="l00135"></a>00135 <span class="keyword">public</span> <span class="keywordtype">long</span> readLspIntegrityDefinitionPointer() throws IOException {
-<a name="l00136"></a>00136 <span class="keywordflow">return</span> readPointer(LSP_INTEGRITY_POINTER_LOCATION);
-<a name="l00137"></a>00137 }
-<a name="l00138"></a>00138
-<a name="l00139"></a>00139 <span class="keyword">private</span> <span class="keywordtype">long</span> readPointer(<span class="keywordtype">int</span> pointerLocation) <span class="keywordflow">throws</span> IOException {
-<a name="l00140"></a>00140 seek(pointerLocation);
-<a name="l00141"></a>00141 <span class="keywordflow">return</span> readUint32();
-<a name="l00142"></a>00142 }
-<a name="l00143"></a>00143 }
+<a name="l00107"></a>00107 <span class="keywordflow">return</span> hexbin;
+<a name="l00108"></a>00108 }
+<a name="l00109"></a>00109
+<a name="l00110"></a>00110 <span class="keyword">public</span> byte[] readHexbin64k() throws IOException {
+<a name="l00111"></a>00111 <span class="keywordtype">short</span> length = readShort();
+<a name="l00112"></a>00112 byte[] data = <span class="keyword">new</span> byte[length];
+<a name="l00113"></a>00113 read(data);
+<a name="l00114"></a>00114 <span class="keywordflow">return</span> data;
+<a name="l00115"></a>00115 }
+<a name="l00116"></a>00116
+<a name="l00117"></a>00117 <span class="keyword">public</span> <span class="keywordtype">long</span> readSoftwareDescriptionPointer() throws IOException {
+<a name="l00118"></a>00118 <span class="keywordflow">return</span> readPointer(SOFTWARE_DESCRIPTION_POINTER_LOCATION);
+<a name="l00119"></a>00119 }
+<a name="l00120"></a>00120
+<a name="l00121"></a>00121 <span class="keyword">public</span> <span class="keywordtype">long</span> readTargetDefinitionsPointer() throws IOException {
+<a name="l00122"></a>00122 <span class="keywordflow">return</span> readPointer(TARGET_DEFINITIONS_POINTER_LOCATION);
+<a name="l00123"></a>00123 }
+<a name="l00124"></a>00124
+<a name="l00125"></a>00125 <span class="keyword">public</span> <span class="keywordtype">long</span> readFileDefinitionsPointer() throws IOException {
+<a name="l00126"></a>00126 <span class="keywordflow">return</span> readPointer(FILE_DEFINITIONS_POINTER_LOCATION);
+<a name="l00127"></a>00127 }
+<a name="l00128"></a>00128
+<a name="l00129"></a>00129 <span class="keyword">public</span> <span class="keywordtype">long</span> readSdfIntegrityDefinitionPointer() throws IOException {
+<a name="l00130"></a>00130 <span class="keywordflow">return</span> readPointer(SDF_INTEGRITY_POINTER_LOCATION);
+<a name="l00131"></a>00131 }
+<a name="l00132"></a>00132
+<a name="l00133"></a>00133 <span class="keyword">public</span> <span class="keywordtype">long</span> readLspIntegrityDefinitionPointer() throws IOException {
+<a name="l00134"></a>00134 <span class="keywordflow">return</span> readPointer(LSP_INTEGRITY_POINTER_LOCATION);
+<a name="l00135"></a>00135 }
+<a name="l00136"></a>00136
+<a name="l00137"></a>00137 <span class="keyword">private</span> <span class="keywordtype">long</span> readPointer(<span class="keywordtype">int</span> pointerLocation) <span class="keywordflow">throws</span> IOException {
+<a name="l00138"></a>00138 seek(pointerLocation);
+<a name="l00139"></a>00139 <span class="keywordflow">return</span> readUint32();
+<a name="l00140"></a>00140 }
+<a name="l00141"></a>00141
+<a name="l00142"></a>00142 <span class="keyword">public</span> byte[] readAll() throws IOException {
+<a name="l00143"></a>00143 byte[] buffer = <span class="keyword">new</span> byte[(int) this.length()];
+<a name="l00144"></a>00144
+<a name="l00145"></a>00145 <span class="keywordtype">long</span> location = this.getFilePointer();
+<a name="l00146"></a>00146
+<a name="l00147"></a>00147 this.seek(0);
+<a name="l00148"></a>00148
+<a name="l00149"></a>00149 this.readFully(buffer);
+<a name="l00150"></a>00150
+<a name="l00151"></a>00151 this.seek(location);
+<a name="l00152"></a>00152
+<a name="l00153"></a>00153 <span class="keywordflow">return</span> buffer;
+<a name="l00154"></a>00154 }
+<a name="l00155"></a>00155 }
</pre></div></div><!-- contents -->
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>BdfFile.java</b> </li>
- <li class="footer">Generated on Sat Mar 3 2012 13:00:59 for ARINC 838 by
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:36 for ARINC 838 by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
</ul>
View
178 docs/html/_bdf_reader_8java_source.html
@@ -0,0 +1,178 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/reader/BdfReader.java Source File</title>
+
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+
+</head>
+<body>
+<div id="top"><!-- do not remove this div! -->
+
+
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+
+
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">ARINC 838
+ &#160;<span id="projectnumber">0.2</span>
+ </div>
+ <div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
+ </td>
+
+
+
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<!-- Generated by Doxygen 1.8.0 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="dynsections.js"></script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File&#160;List</span></a></li>
+ </ul>
+ </div>
+</div>
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+ initNavTree('_bdf_reader_8java.html','');
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/reader/BdfReader.java</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
+<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2012 Chris Ellison, Mike Deats, Liron Yahdav, Ryan Neal,</span>
+<a name="l00003"></a>00003 <span class="comment"> * Brandon Sutherlin, Scott Griffin</span>
+<a name="l00004"></a>00004 <span class="comment"> * </span>
+<a name="l00005"></a>00005 <span class="comment"> * This software is released under the MIT license</span>
+<a name="l00006"></a>00006 <span class="comment"> * (http://www.opensource.org/licenses/mit-license.php)</span>
+<a name="l00007"></a>00007 <span class="comment"> * </span>
+<a name="l00008"></a>00008 <span class="comment"> * Created on Apr 3, 2012</span>
+<a name="l00009"></a>00009 <span class="comment"> */</span>
+<a name="l00010"></a>00010 <span class="keyword">package </span>edu.cmu.sv.arinc838.reader;
+<a name="l00011"></a>00011
+<a name="l00012"></a>00012 <span class="keyword">import</span> java.io.File;
+<a name="l00013"></a>00013 <span class="keyword">import</span> java.util.List;
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="keyword">import</span> edu.cmu.sv.arinc838.binary.BdfFile;
+<a name="l00016"></a>00016 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00017"></a>00017 <span class="keyword">import</span> edu.cmu.sv.arinc838.validation.DataValidator;
+<a name="l00018"></a>00018 <span class="keyword">import</span> edu.cmu.sv.arinc838.validation.SoftwareDefinitionFileValidator;
+<a name="l00019"></a>00019
+<a name="l00020"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_bdf_reader.html">00020</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_bdf_reader.html">BdfReader</a> <span class="keyword">implements</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_sdf_reader.html">SdfReader</a> {
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="keyword">private</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_software_definition_file_validator.html">SoftwareDefinitionFileValidator</a> validator;
+<a name="l00023"></a>00023
+<a name="l00024"></a>00024 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_bdf_reader.html">BdfReader</a>() {
+<a name="l00025"></a>00025 validator = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_software_definition_file_validator.html">SoftwareDefinitionFileValidator</a>(<span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_data_validator.html">DataValidator</a>());
+<a name="l00026"></a>00026 }
+<a name="l00027"></a>00027
+<a name="l00028"></a>00028 @Override
+<a name="l00029"></a>00029 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> read(String filename,
+<a name="l00030"></a>00030 List&lt;Exception&gt; errorList) {
+<a name="l00031"></a>00031 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> bdf = null;
+<a name="l00032"></a>00032 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao = null;
+<a name="l00033"></a>00033 <span class="keywordflow">try</span> {
+<a name="l00034"></a>00034 File file = <span class="keyword">new</span> File(filename);
+<a name="l00035"></a>00035 bdf = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a>(file);
+<a name="l00036"></a>00036 sdfDao = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a>(bdf, file.getParentFile()
+<a name="l00037"></a>00037 .getAbsolutePath());
+<a name="l00038"></a>00038 <span class="keywordflow">if</span> (errorList != null) {
+<a name="l00039"></a>00039 errorList.addAll(validator.validateSdfFile(sdfDao,
+<a name="l00040"></a>00040 file.getName(), bdf));
+<a name="l00041"></a>00041 }
+<a name="l00042"></a>00042 } <span class="keywordflow">catch</span> (Exception e) {
+<a name="l00043"></a>00043 <span class="keywordflow">if</span> (errorList != null) {
+<a name="l00044"></a>00044 errorList.add(e);
+<a name="l00045"></a>00045 }
+<a name="l00046"></a>00046 }
+<a name="l00047"></a>00047
+<a name="l00048"></a>00048 <span class="keywordflow">return</span> sdfDao;
+<a name="l00049"></a>00049 }
+<a name="l00050"></a>00050 }
+</pre></div></div><!-- contents -->
+</div>
+ <div id="nav-path" class="navpath">
+ <ul>
+ <li class="navelem"><b>BdfReader.java</b> </li>
+
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:37 for ARINC 838 by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
+ </ul>
+ </div>
+
+
+</body>
+</html>
View
58 docs/html/_bdf_writer_8java_source.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>ARINC 838: /Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/writer/BdfWriter.java Source File</title>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/writer/BdfWriter.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
@@ -33,7 +33,7 @@
<td style="padding-left: 0.5em;">
<div id="projectname">ARINC 838
- &#160;<span id="projectnumber">0.1</span>
+ &#160;<span id="projectnumber">0.2</span>
</div>
<div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
</td>
@@ -108,7 +108,7 @@
<div class="header">
<div class="headertitle">
-<div class="title">/Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/writer/BdfWriter.java</div> </div>
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/writer/BdfWriter.java</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
@@ -123,38 +123,44 @@
<a name="l00010"></a>00010 <span class="keyword">package </span>edu.cmu.sv.arinc838.writer;
<a name="l00011"></a>00011
<a name="l00012"></a>00012 <span class="keyword">import</span> java.io.File;
-<a name="l00013"></a>00013 <span class="keyword">import</span> java.io.IOException;
-<a name="l00014"></a>00014
-<a name="l00015"></a>00015 <span class="keyword">import</span> edu.cmu.sv.arinc838.binary.BdfFile;
+<a name="l00013"></a>00013
+<a name="l00014"></a>00014 <span class="keyword">import</span> edu.cmu.sv.arinc838.binary.BdfFile;
+<a name="l00015"></a>00015 <span class="keyword">import</span> edu.cmu.sv.arinc838.builder.BuilderFactory;
<a name="l00016"></a>00016 <span class="keyword">import</span> edu.cmu.sv.arinc838.builder.SoftwareDefinitionFileBuilder;
-<a name="l00017"></a>00017
-<a name="l00018"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_bdf_writer.html">00018</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_bdf_writer.html">BdfWriter</a> <span class="keyword">implements</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_sdf_writer.html">SdfWriter</a> {
-<a name="l00019"></a>00019
+<a name="l00017"></a>00017 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00018"></a>00018
+<a name="l00019"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_bdf_writer.html">00019</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_bdf_writer.html">BdfWriter</a> <span class="keyword">implements</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_sdf_writer.html">SdfWriter</a> {
<a name="l00020"></a>00020 @Override
-<a name="l00021"></a>00021 <span class="keyword">public</span> String write(String path, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a> builder)
-<a name="l00022"></a>00022 <span class="keywordflow">throws</span> Exception {
-<a name="l00023"></a>00023
-<a name="l00024"></a>00024 File fileOnDisk =<span class="keyword">new</span> File(path+builder.getBinaryFileName());
-<a name="l00025"></a>00025
-<a name="l00026"></a>00026 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> file = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a>(fileOnDisk);
-<a name="l00027"></a>00027
-<a name="l00028"></a>00028 write(file, builder);
-<a name="l00029"></a>00029
-<a name="l00030"></a>00030 <span class="keywordflow">return</span> fileOnDisk.getAbsolutePath();
+<a name="l00021"></a>00021 <span class="keyword">public</span> <span class="keywordtype">void</span> write(String path, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao)
+<a name="l00022"></a>00022 <span class="keywordflow">throws</span> Exception {
+<a name="l00023"></a>00023 File fileOnDisk = <span class="keyword">new</span> File(path + sdfDao.getBinaryFileName());
+<a name="l00024"></a>00024 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> file = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a>(fileOnDisk);
+<a name="l00025"></a>00025 <span class="comment">// This file must be empty</span>
+<a name="l00026"></a>00026 file.setLength(0);
+<a name="l00027"></a>00027 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a> builder = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a>(
+<a name="l00028"></a>00028 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_factory.html">BuilderFactory</a>());
+<a name="l00029"></a>00029 write(file, builder, sdfDao);
+<a name="l00030"></a>00030
<a name="l00031"></a>00031 }
-<a name="l00032"></a>00032
-<a name="l00033"></a>00033 <span class="keyword">public</span> <span class="keywordtype">void</span> write(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> file, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a> builder) <span class="keywordflow">throws</span> IOException{
-<a name="l00034"></a>00034 builder.buildBinary(file);
-<a name="l00035"></a>00035 file.close();
-<a name="l00036"></a>00036 }
-<a name="l00037"></a>00037 }
+<a name="l00032"></a>00032
+<a name="l00033"></a>00033 <span class="keyword">public</span> <span class="keywordtype">void</span> write(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> file, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a> builder,
+<a name="l00034"></a>00034 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao) <span class="keywordflow">throws</span> Exception {
+<a name="l00035"></a>00035 builder.buildBinary(sdfDao, file);
+<a name="l00036"></a>00036 file.close();
+<a name="l00037"></a>00037 }
+<a name="l00038"></a>00038
+<a name="l00039"></a>00039 @Override
+<a name="l00040"></a>00040 <span class="keyword">public</span> String getFilename(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao) {
+<a name="l00041"></a>00041 <span class="keywordflow">return</span> sdfDao.getBinaryFileName();
+<a name="l00042"></a>00042 }
+<a name="l00043"></a>00043 }
</pre></div></div><!-- contents -->
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>BdfWriter.java</b> </li>
- <li class="footer">Generated on Sat Mar 3 2012 13:00:59 for ARINC 838 by
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:37 for ARINC 838 by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
</ul>
View
146 docs/html/_branch_item_8java_source.html
@@ -0,0 +1,146 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/item/BranchItem.java Source File</title>
+
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+
+</head>
+<body>
+<div id="top"><!-- do not remove this div! -->
+
+
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+
+
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">ARINC 838
+ &#160;<span id="projectnumber">0.2</span>
+ </div>
+ <div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
+ </td>
+
+
+
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<!-- Generated by Doxygen 1.8.0 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="dynsections.js"></script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File&#160;List</span></a></li>
+ </ul>
+ </div>
+</div>
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+ initNavTree('_branch_item_8java.html','');
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/item/BranchItem.java</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">package </span>edu.cmu.sv.arinc838.ui.item;
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00004"></a>00004 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.Menu;
+<a name="l00005"></a>00005
+<a name="l00006"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_branch_item.html">00006</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_branch_item.html">BranchItem</a> <span class="keyword">extends</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a>{
+<a name="l00007"></a>00007 <span class="keyword">private</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_menu.html">Menu</a> menu;
+<a name="l00008"></a>00008
+<a name="l00009"></a>00009 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_branch_item.html">BranchItem</a> (String prompt, <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_menu.html">Menu</a> menu) {
+<a name="l00010"></a>00010 super (prompt);
+<a name="l00011"></a>00011 this.menu = menu;
+<a name="l00012"></a>00012 }
+<a name="l00013"></a>00013
+<a name="l00014"></a>00014 @Override
+<a name="l00015"></a>00015 <span class="keyword">public</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] execute(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao) <span class="keywordflow">throws</span> Exception {
+<a name="l00016"></a>00016 <span class="keywordflow">return</span> menu.getItems();
+<a name="l00017"></a>00017 }
+<a name="l00018"></a>00018 }
+</pre></div></div><!-- contents -->
+</div>
+ <div id="nav-path" class="navpath">
+ <ul>
+ <li class="navelem"><b>BranchItem.java</b> </li>
+
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:37 for ARINC 838 by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
+ </ul>
+ </div>
+
+
+</body>
+</html>
View
14 docs/html/_builder_8java_source.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<title>ARINC 838: /Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/builder/Builder.java Source File</title>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/builder/Builder.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
@@ -33,7 +33,7 @@
<td style="padding-left: 0.5em;">
<div id="projectname">ARINC 838
- &#160;<span id="projectnumber">0.1</span>
+ &#160;<span id="projectnumber">0.2</span>
</div>
<div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
</td>
@@ -108,7 +108,7 @@
<div class="header">
<div class="headertitle">
-<div class="title">/Users/mike/Documents/workspace/arinc838/src/main/java/edu/cmu/sv/arinc838/builder/Builder.java</div> </div>
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/builder/Builder.java</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
@@ -126,11 +126,11 @@
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="keyword">import</span> edu.cmu.sv.arinc838.binary.BdfFile;
<a name="l00015"></a>00015
-<a name="l00016"></a><a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_t_01_4.html">00016</a> <span class="keyword">public</span> <span class="keyword">interface </span>Builder&lt;T&gt; {
+<a name="l00016"></a><a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">00016</a> <span class="keyword">public</span> <span class="keyword">interface </span>Builder&lt;DaoType, JaxbType&gt; {
<a name="l00017"></a>00017
-<a name="l00023"></a>00023 <span class="keyword">public</span> T buildXml();
+<a name="l00023"></a>00023 <span class="keyword">public</span> JaxbType buildXml(DaoType dao);
<a name="l00024"></a>00024
-<a name="l00034"></a>00034 <span class="keyword">public</span> <span class="keywordtype">int</span> buildBinary(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> bdfFile) <span class="keywordflow">throws</span> IOException;
+<a name="l00034"></a>00034 <span class="keyword">public</span> <span class="keywordtype">int</span> buildBinary(DaoType dao, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1binary_1_1_bdf_file.html">BdfFile</a> bdfFile) <span class="keywordflow">throws</span> IOException;
<a name="l00035"></a>00035 }
</pre></div></div><!-- contents -->
</div>
@@ -138,7 +138,7 @@
<ul>
<li class="navelem"><b>Builder.java</b> </li>
- <li class="footer">Generated on Sat Mar 3 2012 13:00:59 for ARINC 838 by
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:36 for ARINC 838 by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
</ul>
View
167 docs/html/_builder_factory_8java_source.html
@@ -0,0 +1,167 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/builder/BuilderFactory.java Source File</title>
+
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+
+</head>
+<body>
+<div id="top"><!-- do not remove this div! -->
+
+
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+
+
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">ARINC 838
+ &#160;<span id="projectnumber">0.2</span>
+ </div>
+ <div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
+ </td>
+
+
+
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<!-- Generated by Doxygen 1.8.0 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="dynsections.js"></script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File&#160;List</span></a></li>
+ </ul>
+ </div>
+</div>
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+ initNavTree('_builder_factory_8java.html','');
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/builder/BuilderFactory.java</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">package </span>edu.cmu.sv.arinc838.builder;
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.FileDefinitionDao;
+<a name="l00004"></a>00004 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.IntegrityDefinitionDao;
+<a name="l00005"></a>00005 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00006"></a>00006 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDescriptionDao;
+<a name="l00007"></a>00007 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.TargetHardwareDefinitionDao;
+<a name="l00008"></a>00008
+<a name="l00009"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_factory.html">00009</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_factory.html">BuilderFactory</a> {
+<a name="l00010"></a>00010
+<a name="l00011"></a>00011 @SuppressWarnings(<span class="stringliteral">&quot;unchecked&quot;</span>)
+<a name="l00012"></a>00012 public &lt;DaoType, JaxbType&gt; <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a> getBuilder(
+<a name="l00013"></a>00013 Class&lt;DaoType&gt; Dao, Class&lt;JaxbType&gt; JaxB) {
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="keywordflow">if</span> (Dao == <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_description_dao.html">SoftwareDescriptionDao</a>.class) {
+<a name="l00016"></a>00016 <span class="keywordflow">return</span> (<a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a>) <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_description_builder.html">SoftwareDescriptionBuilder</a>();
+<a name="l00017"></a>00017 }
+<a name="l00018"></a>00018
+<a name="l00019"></a>00019 <span class="keywordflow">if</span> (Dao == <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_file_definition_dao.html">FileDefinitionDao</a>.class) {
+<a name="l00020"></a>00020 <span class="keywordflow">return</span> (<a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a>) <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_file_definition_builder.html">FileDefinitionBuilder</a>(<span class="keyword">this</span>);
+<a name="l00021"></a>00021 }
+<a name="l00022"></a>00022
+<a name="l00023"></a>00023 <span class="keywordflow">if</span> (Dao == <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_integrity_definition_dao.html">IntegrityDefinitionDao</a>.class) {
+<a name="l00024"></a>00024 <span class="keywordflow">return</span> (<a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a>) <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_integrity_definition_builder.html">IntegrityDefinitionBuilder</a>();
+<a name="l00025"></a>00025 }
+<a name="l00026"></a>00026
+<a name="l00027"></a>00027 <span class="keywordflow">if</span> (Dao == <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a>.class) {
+<a name="l00028"></a>00028 <span class="keywordflow">return</span> (<a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a>) <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_software_definition_file_builder.html">SoftwareDefinitionFileBuilder</a>(
+<a name="l00029"></a>00029 <span class="keyword">this</span>);
+<a name="l00030"></a>00030 }
+<a name="l00031"></a>00031
+<a name="l00032"></a>00032 <span class="keywordflow">if</span> (Dao == <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_target_hardware_definition_dao.html">TargetHardwareDefinitionDao</a>.class) {
+<a name="l00033"></a>00033 <span class="keywordflow">return</span> (<a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_builder_3_01_dao_type_00_01_jaxb_type_01_4.html">Builder&lt;DaoType, JaxbType&gt;</a>) <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1builder_1_1_target_hardware_definition_builder.html">TargetHardwareDefinitionBuilder</a>();
+<a name="l00034"></a>00034 }
+<a name="l00035"></a>00035
+<a name="l00036"></a>00036 <span class="keywordflow">throw</span> <span class="keyword">new</span> IllegalArgumentException();
+<a name="l00037"></a>00037 }
+<a name="l00038"></a>00038
+<a name="l00039"></a>00039 }
+</pre></div></div><!-- contents -->
+</div>
+ <div id="nav-path" class="navpath">
+ <ul>
+ <li class="navelem"><b>BuilderFactory.java</b> </li>
+
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:36 for ARINC 838 by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
+ </ul>
+ </div>
+
+
+</body>
+</html>
View
205 docs/html/_comparison_menu_8java_source.html
@@ -0,0 +1,205 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/ComparisonMenu.java Source File</title>
+
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+
+</head>
+<body>
+<div id="top"><!-- do not remove this div! -->
+
+
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+
+
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">ARINC 838
+ &#160;<span id="projectnumber">0.2</span>
+ </div>
+ <div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
+ </td>
+
+
+
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<!-- Generated by Doxygen 1.8.0 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="dynsections.js"></script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File&#160;List</span></a></li>
+ </ul>
+ </div>
+</div>
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+ initNavTree('_comparison_menu_8java.html','');
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/ComparisonMenu.java</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">package </span>edu.cmu.sv.arinc838.ui;
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="keyword">import</span> java.util.List;
+<a name="l00004"></a>00004
+<a name="l00005"></a>00005 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00006"></a>00006 <span class="keyword">import</span> edu.cmu.sv.arinc838.reader.BdfReader;
+<a name="l00007"></a>00007 <span class="keyword">import</span> edu.cmu.sv.arinc838.reader.XdfReader;
+<a name="l00008"></a>00008 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.AbstractMenuItem;
+<a name="l00009"></a>00009 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.ExitItem;
+<a name="l00010"></a>00010 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.MenuItem;
+<a name="l00011"></a>00011 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.SdfReadItem;
+<a name="l00012"></a>00012 <span class="keyword">import</span> edu.cmu.sv.arinc838.validation.SdfChecker;
+<a name="l00013"></a>00013
+<a name="l00014"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_comparison_menu.html">00014</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_comparison_menu.html">ComparisonMenu</a> <span class="keyword">implements</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_menu.html">Menu</a> {
+<a name="l00015"></a>00015 <span class="keyword">private</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> firstFile, secondFile;
+<a name="l00016"></a>00016 <span class="keyword">private</span> String firstFilename, secondFilename;
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018 <span class="keyword">private</span> <span class="keyword">class </span>LoadFileMenuItem <span class="keyword">extends</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a> {
+<a name="l00019"></a>00019 <span class="keyword">private</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> dao;
+<a name="l00020"></a>00020 <span class="keyword">private</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a> reader;
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="keyword">public</span> LoadFileMenuItem(String prompt, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> dao, <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a> reader) {
+<a name="l00023"></a>00023 super(prompt);
+<a name="l00024"></a>00024 this.dao = dao;
+<a name="l00025"></a>00025 this.reader = reader;
+<a name="l00026"></a>00026 }
+<a name="l00027"></a>00027
+<a name="l00028"></a>00028 @Override
+<a name="l00029"></a>00029 <span class="keyword">public</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] execute(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao) <span class="keywordflow">throws</span> Exception {
+<a name="l00030"></a>00030 reader.execute(dao);
+<a name="l00031"></a>00031 <span class="keywordflow">return</span> super.getEmptyItems();
+<a name="l00032"></a>00032 }
+<a name="l00033"></a>00033 }
+<a name="l00034"></a>00034
+<a name="l00035"></a>00035 <span class="keyword">public</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_comparison_menu.html">ComparisonMenu</a>() {
+<a name="l00036"></a>00036 firstFile = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a>();
+<a name="l00037"></a>00037 secondFile = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a>();
+<a name="l00038"></a>00038 }
+<a name="l00039"></a>00039
+<a name="l00040"></a>00040 @Override
+<a name="l00041"></a>00041 <span class="keyword">public</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] getItems() {
+<a name="l00042"></a>00042 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a> xdf = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a>(<span class="stringliteral">&quot;xdf&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_xdf_reader.html">XdfReader</a>());
+<a name="l00043"></a>00043 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a> bdf = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a>(<span class="stringliteral">&quot;xdf&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_bdf_reader.html">BdfReader</a>());
+<a name="l00044"></a>00044
+<a name="l00045"></a>00045 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] { <span class="keyword">new</span> LoadFileMenuItem(<span class="stringliteral">&quot;Load first file from XML&quot;</span>, firstFile, xdf),
+<a name="l00046"></a>00046 <span class="keyword">new</span> LoadFileMenuItem(<span class="stringliteral">&quot;Load first file from Binary&quot;</span>, firstFile, bdf),
+<a name="l00047"></a>00047 <span class="keyword">new</span> LoadFileMenuItem(<span class="stringliteral">&quot;Load second file from XML&quot;</span>, secondFile, xdf),
+<a name="l00048"></a>00048 <span class="keyword">new</span> LoadFileMenuItem(<span class="stringliteral">&quot;Load second file from Binary&quot;</span>, secondFile, bdf),
+<a name="l00049"></a>00049 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a> (<span class="stringliteral">&quot;Compare&quot;</span>){
+<a name="l00050"></a>00050 @Override
+<a name="l00051"></a>00051 <span class="keyword">public</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] execute(<a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1dao_1_1_software_definition_file_dao.html">SoftwareDefinitionFileDao</a> sdfDao) <span class="keywordflow">throws</span> Exception {
+<a name="l00052"></a>00052 <span class="keywordflow">if</span> (firstFile != null &amp;&amp; secondFile != null) {
+<a name="l00053"></a>00053 <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_sdf_checker.html">SdfChecker</a> checker = <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1validation_1_1_sdf_checker.html">SdfChecker</a> ();
+<a name="l00054"></a>00054 List&lt;String&gt; results = checker.compare(firstFile, secondFile);
+<a name="l00055"></a>00055
+<a name="l00056"></a>00056 System.out.println(<span class="stringliteral">&quot;Compared the two files and found the following differences:&quot;</span>);
+<a name="l00057"></a>00057 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0; i&lt;results.size(); i++) {
+<a name="l00058"></a>00058 System.out.println(<span class="stringliteral">&quot; &quot;</span> + (i+1) + <span class="stringliteral">&quot;. &quot;</span> + results.get(i));
+<a name="l00059"></a>00059 }
+<a name="l00060"></a>00060
+<a name="l00061"></a>00061 } <span class="keywordflow">else</span> {
+<a name="l00062"></a>00062 System.out.println (<span class="stringliteral">&quot;Can&#39;t compare without both files specified&quot;</span>);
+<a name="l00063"></a>00063 }
+<a name="l00064"></a>00064
+<a name="l00065"></a>00065 <span class="keywordflow">return</span> super.getEmptyItems();
+<a name="l00066"></a>00066 }
+<a name="l00067"></a>00067 },
+<a name="l00068"></a>00068 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_exit_item.html">ExitItem</a>()
+<a name="l00069"></a>00069 };
+<a name="l00070"></a>00070 }
+<a name="l00071"></a>00071
+<a name="l00072"></a>00072 @Override
+<a name="l00073"></a>00073 <span class="keyword">public</span> String getHeader() {
+<a name="l00074"></a>00074 <span class="keywordflow">return</span> <span class="stringliteral">&quot;First File: &quot;</span> + firstFilename +
+<a name="l00075"></a>00075 <span class="stringliteral">&quot;\nSecond File: &quot;</span> + secondFilename;
+<a name="l00076"></a>00076 }
+<a name="l00077"></a>00077 }
+</pre></div></div><!-- contents -->
+</div>
+ <div id="nav-path" class="navpath">
+ <ul>
+ <li class="navelem"><b>ComparisonMenu.java</b> </li>
+
+ <li class="footer">Generated on Mon Apr 23 2012 22:00:37 for ARINC 838 by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
+ </ul>
+ </div>
+
+
+</body>
+</html>
View
179 docs/html/_conversion_menu_8java_source.html
@@ -0,0 +1,179 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<title>ARINC 838: D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/ConversionMenu.java Source File</title>
+
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+
+</head>
+<body>
+<div id="top"><!-- do not remove this div! -->
+
+
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+
+
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">ARINC 838
+ &#160;<span id="projectnumber">0.2</span>
+ </div>
+ <div id="projectbrief">A prototype system capable of installing various types of software onto a mock avionics unit following the ARINC 838 standard.</div>
+ </td>
+
+
+
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<!-- Generated by Doxygen 1.8.0 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="dynsections.js"></script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <span class="left">
+ <img id="MSearchSelect" src="search/mag_sel.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ </span><span class="right">
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </span>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li><a href="files.html"><span>File&#160;List</span></a></li>
+ </ul>
+ </div>
+</div>
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+ initNavTree('_conversion_menu_8java.html','');
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">D:/code/Java/arinc_838/src/main/java/edu/cmu/sv/arinc838/ui/ConversionMenu.java</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">package </span>edu.cmu.sv.arinc838.ui;
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="keyword">import</span> edu.cmu.sv.arinc838.dao.SoftwareDefinitionFileDao;
+<a name="l00004"></a>00004 <span class="keyword">import</span> edu.cmu.sv.arinc838.reader.BdfReader;
+<a name="l00005"></a>00005 <span class="keyword">import</span> edu.cmu.sv.arinc838.reader.XdfReader;
+<a name="l00006"></a>00006 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.AbstractMenuItem;
+<a name="l00007"></a>00007 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.ExitItem;
+<a name="l00008"></a>00008 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.MenuItem;
+<a name="l00009"></a>00009 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.SaveItem;
+<a name="l00010"></a>00010 <span class="keyword">import</span> edu.cmu.sv.arinc838.ui.item.SdfReadItem;
+<a name="l00011"></a>00011 <span class="keyword">import</span> edu.cmu.sv.arinc838.writer.BdfWriter;
+<a name="l00012"></a>00012 <span class="keyword">import</span> edu.cmu.sv.arinc838.writer.XdfWriter;
+<a name="l00013"></a>00013
+<a name="l00014"></a><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_conversion_menu.html">00014</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_conversion_menu.html">ConversionMenu</a> <span class="keyword">implements</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1_menu.html">Menu</a>{
+<a name="l00015"></a>00015 <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] items = <span class="keyword">new</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a>[] {
+<a name="l00016"></a>00016 <span class="keyword">new</span> JoinedItem (<span class="stringliteral">&quot;BDF -&gt; XDF&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a>(<span class="stringliteral">&quot;&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_bdf_reader.html">BdfReader</a>()),
+<a name="l00017"></a>00017 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_save_item.html">SaveItem</a> (<span class="stringliteral">&quot;&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_xdf_writer.html">XdfWriter</a>())),
+<a name="l00018"></a>00018 <span class="keyword">new</span> JoinedItem (<span class="stringliteral">&quot;XDF -&gt; BDF&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_sdf_read_item.html">SdfReadItem</a>(<span class="stringliteral">&quot;&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1reader_1_1_xdf_reader.html">XdfReader</a>()),
+<a name="l00019"></a>00019 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_save_item.html">SaveItem</a> (<span class="stringliteral">&quot;&quot;</span>, <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1writer_1_1_bdf_writer.html">BdfWriter</a>())),
+<a name="l00020"></a>00020 <span class="keyword">new</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_exit_item.html">ExitItem</a>()
+<a name="l00021"></a>00021 };
+<a name="l00022"></a>00022
+<a name="l00023"></a>00023 <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">class </span>JoinedItem <span class="keyword">extends</span> <a class="code" href="classedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_abstract_menu_item.html">AbstractMenuItem</a> {
+<a name="l00024"></a>00024 <span class="keyword">private</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a> first, second;
+<a name="l00025"></a>00025
+<a name="l00026"></a>00026 <span class="keyword">public</span> JoinedItem (String prompt, <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a> first, <a class="code" href="interfaceedu_1_1cmu_1_1sv_1_1arinc838_1_1ui_1_1item_1_1_menu_item.html">MenuItem</a> second) {
+<a name="l00027"></a>00027 super (prompt);
+<a name="l00028"></a>00028 this.first = first;
+<a name="l00029"></a>00029 this.second = second;
+<a name="l00030"></a>00030 }
+<a name="l00031"></a>00031
+<a name="l00032"></a>00032 @Override
+<a name="l00033"></a>00033 <span class="keyword">public</span> <a class="code" href="interfaceedu_1_1cmu_1_1sv_1