2011 Summer (Week 5.4)

249 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

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

No notes for slide

2011 Summer (Week 5.4)

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

×