DJ Example in UAV Context - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

DJ Example in UAV Context

Description:

class Frame { public updateAnnotations(){ List annotations = Main.cg.asList(this, 'from Frame through {A,B} to Annotation'); Iterator it = annotations.iterator ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 9
Provided by: karllie
Learn more at: https://www2.ccs.neu.edu
Category:
Tags: uav | context | example | frame

less

Transcript and Presenter's Notes

Title: DJ Example in UAV Context


1
DJ Examplein UAV Context
  • Karl Lieberherr

2
Frame Structure
Frame
X1
X2
X3
X4
X5
A
X6
X7
B
X8
Annotation
3
Frame Traversal Strategy
from Frame through A,B to Annotation
Frame
X1
X2
X3
X4
X5
A
X6
X7
B
X8
Annotation
4
Selected Paths
from Frame through A,B to Annotation
Frame
X1
X2
X3
X4
X5
A
X6
X7
B
X8
Annotation
5
DJ Program
  • class Frame
  • public updateAnnotations()
  • List annotations
  • Main.cg.asList(this,
  • from Frame through A,B to
    Annotation)
  • Iterator it annotations.iterator()
  • while (it.hasNext())
  • Annotation a (Annotation) it.next()
  • // use set on iterator to
  • // replace Annotation object

6
asList
  • Adapts a traversal to the Java Collections
    Framework as a List object.
  • Lazy traversal.
  • Crosscutting lists they cut across an object.
  • Can go forward and backward and modify object in
    place.

7
asList (continued)
  • Implementation uses a separate Java thread as a
    coroutine.
  • Modifications to the object structure while a
    traversal is paused can be seen when the
    traversal resumes.

8
Conclusion
  • If we add complex object structures to the UAV
    application the benefits of DJ become apparent.
  • asList is only one possible method to invoke on
    a ClassGraph object.
  • Alternatives traverse, fetch, gather.
Write a Comment
User Comments (0)
About PowerShow.com