2011 Summer (Week 5.4)

243 views

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
243
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2011 Summer (Week 5.4)

  1. 1. Task Notes for Paul Taele<br />Week 5: Thursday<br />
  2. 2. Data Structure forDebugging Sketches<br />
  3. 3. Record Class<br />Record:Data structure for debugging sketches.<br />Sketch:Holds the before-sketch.<br />MethodCall:Holds the name of the method call.<br />
  4. 4. Extracting “Bad” Stroke undo() Case<br /><ul><li>Step #1:Deserialize sketch XML file.</li></ul>Sketch<br />XML file<br />
  5. 5. Extracting “Bad” Stroke undo() Case<br /><ul><li>Step #2:Extract recursive strokes from the sketch object.</li></ul>Sketch<br />XML file<br />SketchObject<br />
  6. 6. Extracting “Bad” Stroke undo() Case<br /><ul><li>Step #3:Recursively get all strokes in sketch.</li></ul>Sketch<br />XML file<br />RecursiveStrokes<br />SketchObject<br />
  7. 7. Extracting “Bad” Stroke undo() Case<br /><ul><li>Step #4:Extract the stroke with newest time stamp.</li></ul>Sketch<br />XML file<br />Last Stroke<br />RecursiveStrokes<br />SketchObject<br />
  8. 8. Proposed Undo/ClearMethod Edits<br />
  9. 9. Undo/Clear: Current Implementation<br />Enter <br /><ul><li>Current Implementation:Does “magic” to undo and clear a sketch.</li></ul>Magic<br />Exit<br />
  10. 10. Proposed Changes<br />Enter <br /><ul><li>Addition #1:Cache the sketch before undo/clear.</li></ul>CacheSketch<br />Magic<br />Exit<br />
  11. 11. Proposed Changes<br />Enter <br /><ul><li>Addition #2:Store the sketch and label of method call into a record.</li></ul>CacheSketch<br />Magic<br />Add to<br />Record<br />Exit<br />
  12. 12. Proposed Changes<br />Enter <br /><ul><li>Addition #3:Locally save record to disk. </li></ul>CacheSketch<br />Magic<br />Add to<br />Record<br />Locally Save Record<br />Exit<br />
  13. 13. Saving Debugging Sketch<br />
  14. 14. Start<br />Start<br />Mechanix<br />
  15. 15. Start<br />Start<br />Mechanix<br />Timestamp1<br />
  16. 16. Start -> Undo<br />Start<br />Mechanix<br />Undo<br />Timestamp1<br />
  17. 17. Start -> Undo<br />Start<br />Mechanix<br />Undo<br />Timestamp1<br />Timestamp2-Undo.xml<br />
  18. 18. Start -> Undo-> Clear<br />Start<br />Mechanix<br />Undo<br />Clear<br />Timestamp1<br />Timestamp2-Undo.xml<br />
  19. 19. Start -> Undo -> Clear<br />Start<br />Mechanix<br />Undo<br />Clear<br />Timestamp1<br />Timestamp2-Undo.xml<br />Timestamp3-Clear.xml<br />
  20. 20. Start -> Undo -> Clear -> Undo<br />Start<br />Mechanix<br />Undo<br />Clear<br />Clear<br />Timestamp1<br />Timestamp2-Undo.xml<br />Timestamp3-Clear.xml<br />
  21. 21. Start -> Undo -> Clear -> Undo<br />Start<br />Mechanix<br />Undo<br />Clear<br />Undo<br />Timestamp1<br />Timestamp2-Undo.xml<br />Timestamp3-Clear.xml<br />Timestamp4-Undo.xml<br />

×