Presentation is loading. Please wait.

Presentation is loading. Please wait.

DJ Example in UAV Context Karl Lieberherr. Frame Structure Frame X1 X2X3X4X5 AX6X7BX8 Annotation.

Similar presentations


Presentation on theme: "DJ Example in UAV Context Karl Lieberherr. Frame Structure Frame X1 X2X3X4X5 AX6X7BX8 Annotation."— Presentation transcript:

1 DJ Example in UAV Context Karl Lieberherr

2 Frame Structure Frame X1 X2X3X4X5 AX6X7BX8 Annotation

3 Frame Traversal Strategy Frame X1 X2X3X4X5 AX6X7BX8 Annotation from Frame through {A,B} to Annotation

4 Selected Paths Frame X1 X2 X3X4 X5 A X6X7 B X8 Annotation from Frame through {A,B} to 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.


Download ppt "DJ Example in UAV Context Karl Lieberherr. Frame Structure Frame X1 X2X3X4X5 AX6X7BX8 Annotation."

Similar presentations


Ads by Google