1 / 17

CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn

CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn. Video store class model: send asap, I will select one version to be used for scenarios … to be posted. >I have reviewed > Object Models: > Startegies, patterns, and Applications.

dehner
Télécharger la présentation

CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn

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. CIS 644 Thurs. Oct. 7, 1999 W7B … call for Video Class model … discuss previous pattersn

  2. Video store class model: send asap, I will select one version to be used for scenarios … to be posted

  3. >I have reviewed > Object Models: > Startegies, patterns, and Applications. >... no mention of visitors, iterators or etc.. >...I cannot tie it into the lectures. ANS: yes, Coad give PD patterns Gamma gives implementation patts … wait on Coad patterns

  4. > Gamma text doesn't seem to help G is reference book more than class text. > Can you provide examples … hmmm http://st-www.cs.uiuc.edu/ftp/pub /patterns/dpcat/DPCPP.zip C++ examples from Gamma http://www.cs.wustl.edu/~schmidt/ research.html

  5. > Okay, I'll open the discussion. > I don't understand > visitors, > command/action/transaction, > framework.

  6. Framework … some books refer to a collection or hierarchy of classes as a framework is AWT a framework ?

  7. Frameworks: (1) AppWizard in Studio, Café, … (2) Doug Schmidt ACE http://www.cs.wustl.edu/~schmidt/ ACE-overview.html

  8. ACE ADAPTIVE Communication Environment ...free, open-source, OO framework ...reusable C++ wrapper facades and framework components for common communications event demultiplexing .. event dispatching ...signal handling...service initialization... interprocess communication... shared memory management... message routing... dynamic config of distributed services… concurrent execution & synchronization.

  9. Mohamed Fayad, Douglas C. Schmidt (Editor), Ralph Johnson (Editor), Building Application Frameworks : Object-Oriented Foundations of Framework Wiley, Sept. 1999, 0471248754

  10. (3) Matt Dwyer, pattern = concurrency coordination … work pool + replicated workers framework = “application independent concurrency skeleton” (ps) http://www.cis.ksu.edu/~dwyer/ CAS/cas.html

  11. >Comments on Iterator vs. Visitor: >An iterator provides the ability to move >through a collection without knowing >the underlying implementation of the >collection (e.g., vector or hashtable). true , but the collection should also provide that ! iterator gives separate retained state of the iteration !

  12. >It also strikes me as being non-OO. >….basic concept of OO is that > every object maintains its own state > and performs its own operations. yes and no !! .. every object “owns” its own state … ...but reality of implementation is redundant state info for convenience / efficiency ! state of iterator is the state of some object using the collection .. not state of the coll.

  13. “A visitor provides the ability to add functionality to an existing class hierarchy without changing that hierarchy but by adding a separate class hierarchy.” > This seems quite complicated, > even after reviewing both Gamma > and Eckel ("Thinking in Java"). > ... very difficult to follow.

  14. >the "visitor" wants to perform operations >on some other object rather than itself. …?? violated OO concepts?? > cannot relate the visitor to the PD. motivation is to make reusable parts … not related to any specific PD. … that is concept of patterns

  15. build visitor acceptor into the target object class … and collection class now client can add new operations

  16. let us post some Java samples.

  17. END

More Related