2011 Summer (Week 5.4)
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

2011 Summer (Week 5.4)

on

  • 243 views

 

Statistics

Views

Total Views
243
Views on SlideShare
243
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

2011 Summer (Week 5.4) Presentation Transcript

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