1 / 8

DJ Example in UAV Context

DJ Example in UAV Context. Karl Lieberherr. Frame Structure. Frame. X1. X2. X3. X4. X5. A. X6. X7. B. X8. Annotation. Frame Traversal Strategy. from Frame through {A,B} to Annotation. Frame. X1. X2. X3. X4. X5. A. X6. X7. B. X8. Annotation. Selected Paths.

Télécharger la présentation

DJ Example in UAV Context

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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.

More Related