Programming Project #1 - Step 3 (Recording the Truss Strokes)


This assignment is to build a truss recognizer, so your recognizer should read and sketch and identify which strokes are part of a truss. To evaluate your recognizer, the strokes from labeled trusses are compared to the strokes that your recognizer classifies as part of trusses. Therefore, your output should produce a list of strokes of a truss from each data file.

To make it easier to grade your recognizer, you will be asked to incorporate an XML writer called TrussStrokesRecorder.java within your code. This XML writer will put all the truss strokes from each data file into one XML file. Your data file will be compared to the truss strokes from the labeled testing data.

Once you have incorporated the XML writer in your code, your recognizer will be assessed on testing data.  You will not be asked to include the output file along with your submitted code, since the output file will be produced on a different set of data from the one you worked with.

LINKS:
INSTRUCTIONS:
  1. Put the XML writer file into your Java workspace.
  2. Instantiate the XML writer in your code before you run your truss recognizer.
  3. Parse each data file and convert it to a Sketch object.
  4. In each data file, run your truss recognizer to output the list of strokes that are part of the truss.
  5. Run the void add(File, List<Stroke>) method, where:

    • File is the data file
    • List<Stroke> are the list of truss strokes for each data file

  6. After you finish running through each data file, run the void write(File) method to output all the truss strokes from each data file into an XML file.  Name this file:

    • output_FirstName_LastName.xml

  7. Document how to modify the location of your output file in your README.txt file